Back to Browse

Rails 6 API Tutorial - Fixing authentication specs and improving the codebase p.24

2.2K views
Aug 19, 2021
21:55

In this video series we will build a Rails API from scratch. Backend APIs are useful for serving data to frontend applications, mobile apps or other backend services. ✨ Check out the new version of this video series, which has been updated for Rails 7 https://youtu.be/FJiIvFoxqsc 📖 You can also purchase the eBook and code for the new Rails 7 tutorial - https://tomkadwill.gumroad.com/l/rails-api-tutorial This video covers: 00:18 - Running specs to check for failing tests 00:36 - Fixing controller specs by stubbing AuthenticationTokenService 05:31 - Fixing request specs by including a JWT Authorization header with a valid user id 10:52 - Fixing controller to return a 401 when Authorization header is missing, instead of raising an exception 18:31 - Updating AuthenticationTokenService method names If you’re new to this series, you may want to start with part 1: https://youtu.be/6KqbPJtA5O8

Download

1 formats

Video Formats

360pmp433.0 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Rails 6 API Tutorial - Fixing authentication specs and improving the codebase p.24 | NatokHD