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

preview_player
Показать описание
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.

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

Рекомендации по теме
Комментарии
Автор

This was an excellent series Tom! I learned so much about Rails API's, TDD and authentication. Please don't stop making tutorials, you're one of the best instructors on YouTube! Thanks so much!

artofthesystem
Автор

thank you for this tutorial! i followed ep 18-24 and everything is working smoothly!

valcaro
Автор

Amazing that you're still adding the Rails API tutorial! Keep up the great work!

bradfordli
Автор

Thanks man, this series helped me a lot ❤

ahmedmustafa
Автор

watched all eps, were helpfull, thanks bru

iapplethis
Автор

Thank you, this series has been very beneficial with helping me gaining a more detailed understanding of REST API and implementation.

TrevorCS
Автор

You saved a lot of time for me with these in detailed steps, You are the best! Thanks a lot :)

ahmedamin
Автор

Thanks for the whole series Tom, it's very informative and I really enjoyed all the TDD stuff; something I have always wanted to learn more about

jacobdegeling
Автор

Subscribed :) Looking forward to more materials !

michiharuono
Автор

Hi Tom, thank you so much for this series, it has really helped me learn the basics of a Rails API! There's something I noticed though, when you defined your decode function on the AuthenticationTokenService class, you made a typo in one of the parameters from "algorithm" to "algorith", so why doesn't it affect any of the tests? Thanks again!

danielfromCL
Автор

Good presentation but it will be better if you zoom your fonts

mybabyarchive