Endpoint:
Method: POST
Type: RAW
URL: http://localhost:5000/auth/registerBody:
{
"name":"Kim",
"email":"kim@gmail.com",
"password":"secret"
}Endpoint:
Method: POST
Type: RAW
URL: http://localhost:5000/auth/loginBody:
{
"email":"ayesiga@gmail.com",
"password":"secrett"
}Endpoint:
Method: GET
Type: RAW
URL: http://localhost:5000/auth/logoutBody:
{
"email":"ayesiga@gmail.com",
"password":"secrett"
}Endpoint:
Method: GET
Type:
URL: http://localhost:5000/usersEndpoint:
Method: GET
Type:
URL: http://localhost:5000/users/showMeEndpoint:
Method: PATCH
Type: RAW
URL: http://localhost:5000/users/updateUserBody:
{
"name":"Trikcode",
"email":"together@gmail.com",
"password":"secrettt"
}Endpoint:
Method: PATCH
Type: RAW
URL: http://localhost:5000/users/updateUserPasswordBody:
{
"email":"together@gmail.com",
"password":"secretttt"
}Endpoint:
Method: GET
Type:
URL: http://localhost:5000/users/62af85d10e91f8ff3f1d16a4Endpoint:
Method: GET
Type:
URL: http://localhost:5000/productsEndpoint:
Method: POST
Type: RAW
URL: http://localhost:5000/productsBody:
{
"name":"testproduct",
"description":"this is anew prodt",
"category":"office",
"company":"ikea"
}Endpoint:
Method: GET
Type:
URL: http://localhost:5000/products/62b584178f8ae564c2d3bc70Endpoint:
Method: PATCH
Type:
URL: http://localhost:5000/products/62b584178f8ae564c2d3bc70Endpoint:
Method: DELETE
Type:
URL: http://localhost:5000/products/62b584178f8ae564c2d3bc70Endpoint:
Method: POST
Type: FORMDATA
URL: http://localhost:5000/products/uploadImageQuery params:
| Key | Value | Description |
|---|---|---|
| image | file |
Body:
| Key | Value | Description |
|---|---|---|
| image |
Endpoint:
Method: GET
Type:
URL: http://localhost:5000/reviewsEndpoint:
Method: POST
Type: RAW
URL: http://localhost:5000/reviewsBody:
{
"rating":2,
"title":"Bad product",
"comment":"too bad",
"product":"62b585358f8ae564c2d3bc7a"
}Endpoint:
Method: PATCH
Type: RAW
URL: http://localhost:5000/reviews/62b585468f8ae564c2d3bc7eBody:
{
"rating":1,
"title":"God product",
"comment":"too badggd"
}Endpoint:
Method: DELETE
Type:
URL: http://localhost:5000/reviews/62b585468f8ae564c2d3bc7eEndpoint:
Method: GET
Type:
URL: http://localhost:5000/ordersEndpoint:
Method: POST
Type: RAW
URL: http://localhost:5000/ordersBody:
{
"tax": 499,
"shippingFee": 799,
"items": [
{
"name": "bed",
"price": 2699,
"image": "https://dl.airtable.com/.attachmentThumbnails/e8bc3791196535af65f40e36993b9e1f/438bd160",
"amount": 3,
"product": "62b586a48f8ae564c2d3bc8f"
},
{
"name": "chair",
"price": 2999,
"image": "https://dl.airtable.com/.attachmentThumbnails/e8bc3791196535af65f40e36993b9e1f/438bd160",
"amount": 2,
"product": "62b586a48f8ae564c2d3bc8f"
}
]
}Endpoint:
Method: PATCH
Type: RAW
URL: http://localhost:5000/orders/62b0cbb7ceba70da332dbf61Body:
{
"tax": 20,
"shippingFee": 799,
"items": [
{
"name": "bed",
"price": 2699,
"image": "https://dl.airtable.com/.attachmentThumbnails/e8bc3791196535af65f40e36993b9e1f/438bd160",
"amount": 3,
"product": "62b587258f8ae564c2d3bc9e"
},
{
"name": "chair",
"price": 2999,
"image": "https://dl.airtable.com/.attachmentThumbnails/e8bc3791196535af65f40e36993b9e1f/438bd160",
"amount": 2,
"product": "62b587258f8ae564c2d3bc9e"
}
]
}Endpoint:
Method: GET
Type:
URL: http://localhost:5000/orders/showAllMyOrdersGenerated at 2022-06-24 12:59:53 by docgen