Backend maded in Django for a E-commerce platform.
/orders/
/orders/{id}/
Parameter | Type | Description |
---|---|---|
id |
integer |
Required. Id of item to fetch |
POST /orders/add
Just add a order
PUT /orders/deliver/{id}
Parameter | Type | Description |
---|---|---|
id |
integer |
Required. Id of item to update |
GET /orders/my
Get my orders
GET /products
Get all
GET /products
GET /products/cate/{category}/
Get all products with a category in specific
Parameter | Type | Description |
---|---|---|
category |
string |
Required. category of item to fetch |
DELETE /products/delete/{id}/
Parameter | Type | Description |
---|---|---|
id |
integer |
Required. id of item to delete |
PUT /products/edit/{id}/
Parameter | Type | Description |
---|---|---|
id |
integer |
Required. Id of item to update |
GET /products/get/{slug}
Parameter | Type | Description |
---|---|---|
slug |
string |
Required. slug of item to fetch |
GET /products/get/admin/{id}/
Parameter | Type | Description |
---|---|---|
id |
integer |
Required. Id of item to fetch |
POST /products/post
Create a product
POST /products/review/{id}
Create a review for a product
Parameter | Type | Description |
---|---|---|
id |
integer |
Required. Id of item to find |
GET /products/search/
POST /users/login
AUTH IMPLEMENTED WITH JWT
POST /users/refresh/
Refresh token
POST /users/register/
Create a user
/users/users/
Get all users