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
- Host: GitHub
- URL: https://github.com/codepapi/restaurant-app-backend
- Owner: CodePapi
- License: mit
- Created: 2021-11-17T12:26:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-24T10:24:24.000Z (over 4 years ago)
- Last Synced: 2024-12-27T00:12:10.203Z (over 1 year ago)
- Topics: csv, csv-parser, expressjs, google-places-api, mongodb, mongoose, nodejs, nodemailer, postgresql, restaurants
- Language: JavaScript
- Homepage: http://foodierestaurantapp.emed9ja.ml
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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` |
##