I am new to rails.
I want to write restful api’s in rails. I start following the “API on Rails” book.
By following that book, I come to know that there are lot of things are depreciated in rspec, I am getting bulk of error and all things are blown.
Please anyone provide me step by step tutorial for writing Rest APi in rails 5
Those errors were related testing. Becoz lot of things in Rspec are depriciated, when I remove Rspec and testing part from it, then its working fine. I follow the given tutorial and the concept of Api is clear and I am able to write api in rails5.
I am new to rails.
I want to write restful api’s in rails. I start following the “API on Rails” book.
By following that book, I come to know that there are lot of things are depreciated in rspec, I am getting bulk of error and all things are blown.
Please anyone provide me step by step tutorial for writing Rest APi in rails 5
There are a lot of great resources online for creating APIs in Rails 5 (with its new API-only mode).
One of my favorites is called Building the Perfect Rails 5 API Only App by Kam Low (which I wrote about).
Another that just caught my eye was this one called Best Practices for Designing a Pragmatic RESTful API by Vinay Sahni. It isn’t specific to Rails 5, but talks about API best practices and recommendations in general. Very comprehensive.