API on Rails 6
This book is 100% complete
Completed on 2020-09-01
About the Book
Learn best practice to build an API using Ruby on Rails 6. The intention with this book it’s not only to teach you how to build an API with Rails. The purpose is also to teach you how to build scalable and maintainable API with Rails which means improve your current Rails knowledge. In this book you will learn to:
- Use Git for version control
- Building JSON responses
- Test your end-points with unit and functional tests
- Set up authentication with JSON Web Tokens (JWT)
- Use JSON:API specification
- Optimize and cache the API
This book is based on "APIs on Rails: Building REST APIs with Rails". It was initially published in 2014 by Abraham Kuri . Since the original work was not maintained, I wanted to update this excellent work. All the source code of this book is available in Asciidoctor format on Github. So don’t hesitate to fork the project if you want to improve it or fix a mistake that I didn’t notice.
I have read and build an API RESTful rails app based on this book, the book was amazing. I was able to improve my programming skills and style, learn methodologies I would not use before, write better DRY code, ...
I've been getting a lot out of this book. Great guideline and resource to get things moving on how to structure an API.
- The API
- Presenting users
- Authenticating user
- User’s products
- Setup JSON:API specification
- Placing Orders
- Improving orders
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.