tbd: description
Path: /
It should have the info of the company. Short intro to our service / website. Header with
- about
- contact
- search box
Path: /about
- Info about the company
Path: /contact
- Input form to contact the company (get in touch).
Path: /users/sign_in
- It should render a form to log in.
Path: /users/sign_up
- It should render a form to register.
Path: /users/{id}/edit
- Edit the particular user useing the form for update. A button to delete the account.
Path: /restaurants/search?query=Lilli Jo
- A search box for searching resaturant based on the query(name)
Path: /restaurants/{id}
- It should render the all infos about the restaurant. A button to write the review
Path: /restaurants/{id}/reviews/new
- It should render an input field and the rating stars, a submit button.
Public Paths:
-
POST:
/api/users/sign_in. Body should have anemailand apassword. -
POST:
/api/users/sign_up. Body should have anfirstName,lastName,emailand apassword. -
GET:
/api/restaurants/search?=params. Body should have the name of the restaurant -
GET:
/api/restaurants/ -
GET:
/api/restaurants/:id
Paths where Auth is required:
-
PUT:
/api/users/:id. -
DELETE:
/api/users/:id. -
POST:
/api/comment. Body should havetextandratingproperty.
