https://github.com/minhtran241/restaurant-management
Restaurant Management Service API
https://github.com/minhtran241/restaurant-management
aggregation cors gin-gonic golang jwt-authentication mongodb swaggo
Last synced: about 1 month ago
JSON representation
Restaurant Management Service API
- Host: GitHub
- URL: https://github.com/minhtran241/restaurant-management
- Owner: minhtran241
- License: mit
- Created: 2022-10-27T04:09:02.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-31T15:43:24.000Z (over 3 years ago)
- Last Synced: 2025-08-09T21:39:01.718Z (10 months ago)
- Topics: aggregation, cors, gin-gonic, golang, jwt-authentication, mongodb, swaggo
- Language: Go
- Homepage:
- Size: 12.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Restaurant Management API
[](https://github.com/minhtran241/restaurant-management)
[](https://github.com/minhtran241/restaurant-management)
[](https://github.com/minhtran241/restaurant-management)
This repository contains the restaurant management service API
## Package index
List dependencies used in this system by using [github.com/ribice/glice](https://github.com/ribice/glice), a Golang license and dependency checker. The package prints list of all dependencies, their URL, license and saves all the license files in /licenses
```
+----------------------------------------+--------------------------------------------+------------+
| DEPENDENCY | REPOURL | LICENSE |
+----------------------------------------+--------------------------------------------+------------+
| github.com/gin-gonic/gin | https://github.com/gin-gonic/gin | MIT |
| github.com/go-playground/validator/v10 | https://github.com/go-playground/validator | MIT |
| github.com/golang-jwt/jwt/v4 | https://github.com/golang-jwt/jwt | MIT |
| github.com/swaggo/swag | https://github.com/swaggo/swag | MIT |
| go.mongodb.org/mongo-driver | https://github.com/mongodb/mongo-go-driver | Apache-2.0 |
| golang.org/x/crypto | https://go.googlesource.com/crypto | |
| github.com/swaggo/files | https://github.com/swaggo/files | MIT |
| github.com/swaggo/gin-swagger | https://github.com/swaggo/gin-swagger | MIT |
+----------------------------------------+--------------------------------------------+------------+
```
## Endpoint Table
| Endpoints | Descriptions | Methods |
| :------------------------------: | :--------------------------------: | :-----: |
| / | Show the status of server | GET |
| /swagger/index.html | Swagger UI | GET |
| /orderItems-order/:order_item_id | Get all ordered items in one order | GET |
| Method | User | Food | Menu | Invoice | Order | Ordered Item | Table |
| :----------: | :-------------: | :-------------: | :-------------: | :-------------------: | :---------------: | :-----------------------: | :---------------: |
| GET (all) | /users | /foods | /menus | /invoices | /orders | /orderItems | /tables |
| GET (single) | /users/:user_id | /foods/:food_id | /menus/menu_id | /invoices/:invoice_id | /orders/:order_id | /orderItems/order_item_id | /tables/:table_id |
| POST | /users/signup | /foods | /menus | /invoices | /orders | /orderItems | /tables |
| POST | /users/login | | | | | | |
| PATCH | /users/:user_id | /foods/:food_id | /menus/:menu_id | /invoices/:invoice_id | /orders/:order_id | /orderItems/order_item_id | /tables/:table_id |
## License
The project is licensed under the MIT license. Check the [LICENSE](LICENSE) file for details
## Contributor
Minh Tran (Me)