Foodiefun Backend
URL: https://foodiefun-buildweek.herokuapp.com/
"username": "Billy",
"password": "lambdaisnice",
"email": "BillyBob@lambda.com",
"city": "Orlando"
"username": "Johnny",
"password": "lambdaisnice",
"email": "Johndoeb@lambda.com",
"city": "Chicago"
- POST /api/register
{username, password, email, city} are required. Return = Nothing
- POST /api/login
{username, password} are required. Return = ID, username, and token.
- GET /api/users
Token is required. Return = All users
- GET /api/users/:id
Token is required. Return = Specific User
- PUT /api/users/:id
Token is required.
- DELETE /api/users/:id
Token is required.
- POST /api/restaurants
{name, hours, address} are required. Return = Nothing
- GET /api/restaurants
Token is required. Return = All restaurants
- GET /api/restaurants/:id
Token is required. Return = Specific restaurants
- PUT /api/restaurants/:id
Token is required.
- DELETE /api/restaurants/:id
Token is required.
- POST /api/reviews/restaurant/:id
{user_id, restaurant_id, review_disc} are required. Return = Nothing
- GET /api/reviews/user/:id
Token is required. Return = All reviews by specific user
- GET /api/reviews/restaurant/:id
Token is required. Return = All reviews by restaurant
- PUT /api/reviews/:id
Token is required.
- DELETE /api/reviews/:id
Token is required.
- GET /api/reviews/combo/:id
Return = All reviews + restaurants for a specific user. Token is required.
- POST /api/cuisine
{name} are required. Return = Nothing
- GET /api/cuisine
Token is required. Return = All cuisine values
- GET /api/cuisine/:id
Token is required. Return = Specific cuisine value
- PUT /api/cuisine/:id
{name} are required. Token is required.
- DELETE /api/cuisine/:id
Token is required.
- POST /api/cuisinetype/
{cuisine_value_id, restaurant_id} are required. Return = Nothing
- GET /api/cuisinetype/
Token is required. Return = All cuisine types
- GET /api/cuisinetype/:id
Token is required. Return = Specific cuisine type
- PUT /api/cuisinetype/:id
{cuisine_value_id, restaurant_id} are required. Token is required.
- DELETE /api/cuisinetype/:id
Token is required.