POST /api/account/register |
allow user to register |
UserRegisterDto |
UserDto |
Anonymous |
POST /api/account/login |
allow user to login |
UserLoginDto |
UserDto |
Anonymous |
GET /api/product |
Get a list of all products |
None |
List |
Anonymous |
GET /api/product/{id} |
Get a specific product |
None |
Product |
Anonymous |
POST /api/product |
Add a new Product |
CreateProductDto |
Product |
Admin |
PUT /api/product |
Update an existing Product |
UpdateProductDto |
Product |
Admin |
DELETE /api/product/{id} |
Delete a product |
None |
None |
Admin |
POST /api/basket/{productId}/{qantity} |
Add a product to basket |
None |
BasketDto |
User |
DELETE /api/basket/{productId}/{qantity} |
Delete Products from basket |
None |
None |
User |
GET /api/basket |
Get the basket related to a specific user |
None |
BasketDto |
User |
POST /api/order |
Create a new order |
CreateProductDto |
Product |
User |
GET /api/order |
Get all orders for a specific user |
List |
None |
User |
GET /api/order/{id} |
Get A single order for a specific user |
OrderDto |
None |
User |