This is the frontend and backend for the full stack Plate Pilot App
- Express
- MongoDB
- React
- Node.js
Scripts are included in curl-scripts
to test built-in actions. Feel free to use Postman for testing, using the curl scripts listed below and in the folder for setting up headers and request bodies.
Add your own scripts to test your custom API.
Verb | URI Pattern | Controller#Action |
---|---|---|
POST | /sign-up |
users#signup |
POST | /sign-in |
users#signin |
PATCH | /change-password/ |
users#changepw |
DELETE | /sign-out/ |
users#signout |
Verb | URI Pattern | Controller#Action |
---|---|---|
GET | /businesses |
businesses#index |
GET | /businesses/<place_id> |
businesses#show |
POST | /businesses |
businesses#create |
PATCH | /businesses/<place_id> |
businesses#update |
DELETE | /businesses/<place_id> |
businesses#delete |
Request - users#signup:
{
"credentials": {
"email": "[email protected]",
"password": "an example password",
"password_confirmation": "an example password"
}
}
Request - businesses#create (requires a token):
{
"business": {
"title": "restaurant name",
"desc": "this is a business to eat",
// ...
}
}
Send the token as Bearer Token <token>