This course will help you be able to implement token authentication, support multiple response formats, and build complex responses, all while keeping your app future proof and performant with pagination, API versioning, and GraphQL support.
This course, Creating an API with Rails, will enable you to create elegant, predictable, and fast APIs for your app that are extensible and secure.
First, you will explore how to authenticate the APIs that your app is exposing. You will see both basic HTTP authentication and the JWT token authentication approach.
Next, you will learn how to provide different response formats like HTML, JSON, etc from a controller. You will then learn how to serialize the models in your app to JSON and how to use the Jbuilder tool to create complex JSON responses that involve multiple resources all the while keeping the code clean and easy to modify.
Finally, you will learn how to make your APIs future proof by adding support for pagination, API versioning, and alternative ways of querying and serving data using tools like GraphQL and Graphiti.
When you are finished with this course, you will be very comfortable creating APIs in Rails that can not only support multiple complex response formats but are secure, elegant, fast, and extensible.
Course Overview Hi everyone. My name is Nitin, and welcome to my course on Creating an API with Rails. I'm a freelance full‑stack developer, and I help my clients in quickly taking their product ideas to market. In today's world, users expect their favorite applications to be available on multiple platforms like web, iOS, and Android. For back‑end developers like you, this means that you have to expose your app's functionalities in a way that any platform can easily access. The standard way of achieving this is creating a set of elegant and predictable APIs for your application. In this course, we are going to deep dive into all the concepts that you need to understand in order to write high‑quality APIs for your Rails application. Some of the major topics that we will cover include adding an authentication layer to your API endpoints, supporting multiple API response formats and serializing complex models, adding versioning, pagination, and alternative ways of serving data like GraphQL and Graphiti in your application. By the end of this course, you will be very comfortable with creating APIs in Rails that cannot only support multiple response formats, but are secure, elegant, fast, and extensible. Before beginning this course, you should be familiar with the basics of Ruby on Rails. I hope you will join me on this journey to learn Ruby on Rails with the Creating an API with Rails course, at Pluralsight.