Products
List of all routes:
List All Products
- GET https://nite-apigateway.herokuapp.com/nightClub/products/ - List all products
Requires token in header (Bearer token) from employee or manager.
Update product
- PUT https://nite-apigateway.herokuapp.com/nightClub/products/{id} - Update a product
Requires token from manager.
req.body = {
product_name: String,
product_category: String,
product_price: Number
}
Create new product
- POST https://nite-apigateway.herokuapp.com/nightClub/products/ - Create new product
Requires token from manager.
req.body = {
product_name: String,
product_category: String,
product_price: Number
}
Delete-product
- DELETE https://nite-apigateway.herokuapp.com/nightClub/products/{id} - Deletes product
Requires token from manager