An open API service indexing awesome lists of open source software.

https://github.com/codepapi/restaurant-app-backend


https://github.com/codepapi/restaurant-app-backend

csv csv-parser expressjs google-places-api mongodb mongoose nodejs nodemailer postgresql restaurants

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

          

# restaurant-app-backend API Docs

## Authentication APIS

| API Endpoint | Request type | Data Collected |
| ------------------------------------------------------- | ------------------------------------------------------- | -------------- |
| user signup
{BaseURL}/api/auth/signup/ |`POST` | `username, email, password` |
| user signin
{BaseURL} /api/auth/signim |`POST` | `username, password` |
| profile
{BaseURL}/api/auth/profile |`GET` | `Bearer Token` |

##

## Restaurants APIS

| API Endpoint | Request type | Data Collected |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------- | -------------- |
| get all restaurants from google & .csv(excell spreadsheet)
{BaseURL}/api/restaurants/| `GET` | `` |
| filter restaurants by cuisine & location
{BaseURL}/api/restaurants?cuisine=`cuisine`&location=`location` |`GET` | `cuisine, location` |
| get all locations
{BaseURL} /api/restaurants/locations`GET` | `` |
| get all cuisines
{BaseURL}/api/restaurants/cuisines |`GET` | `` |

##

## Booking APIS

| API Endpoint | Request type | Data Collected |
| ------------------------------------------------------------------------- | ---------------------------------------- | -------------- |
| book a restaurant
{BaseURL}/api/booking/|`POST` | `Bearer Token, bookedBy, restaurantData` |
| get all restaurants booked by user
{BaseURL}/api/booking |`GET` | `Bearer Token` |

##