/Cars-Endpoints-Example

Cars and Owners Endpoint Example in Rails

Primary LanguageRuby

Cars Example for Endpoints in Rails

This is an example project to explain how to use rails with Endpoints.

Two Different Columns

There are two different relational columns used

  • Cars
  • Owners

Each car belongs to an owner and an owner can have many cars.

Routes

GET /owners(.:format) POST /owners(.:format)
GET /owners/:id(.:format)
PATCH /owners/:id(.:format)
PUT /owners/:id(.:format)
DELETE /owners/:id(.:format)
GET /cars(.:format)
POST /cars(.:format)
GET /cars/:id(.:format)
PATCH /cars/:id(.:format)
PUT /cars/:id(.:format)

More information

More information to come regarding the tutorial