DEV Community

Cover image for Building a RESTful API with Ruby on Rails (and Getting Some Rest Yourself 💤)

Building a RESTful API with Ruby on Rails (and Getting Some Rest Yourself 💤)

Kate Bennert on June 13, 2023

This past two weeks I've been working on my first full-stack application with a RESTful API I made using the Ruby on Rails framework. This project ...
Collapse
 
tooney92 profile image
Anthony Nta

Awesome stuff! Very splendid article. Can't wait for more!

Here are some take aways from my experience.

  1. Create! Skips your before_create validations which is something I wasn't aware of.

  2. Also your errors in the App controller may also be moved to an error handler module. Why? Well you will see as ur application grows that u will need to have a lot of error handling.

  3. Versioning your APIs too is nice. 😊

  4. Don't forget the good old bullet gem for those pesky N+1 problems.