API to support Eatalog client application.
- Ruby
- Rails
In command line, type rake routes
to view routes.
Verb | URI Pattern | Controller#Action |
---|---|---|
POST | /sign-up |
users#signup |
POST | /sign-in |
users#signin |
DELETE | /sign-out/:id |
users#signout |
PATCH | /change-password/:id |
users#changepw |
GET | /restaurants |
restaurants#index |
POST | /restaurants |
restaurants#create |
GET | /restaurants/:id |
restaurants#show |
PATCH | /restaurants/:id |
restaurants#update |
DELETE | /restaurants/:id |
restaurants#destroy |
- Install with 'bundle install'.
- Start with 'bin/rails server'.
My focus was to develop the backend API before moving on to the frontend. I created an ERD to diagram my table structure before creating a resource scaffold. Next, I wrote curl scripts to verify the CRUD actions worked correctly.