Endpoint:
Method: POST
Type: RAW
URL: https://e-commerce-api-st3k.onrender.com/auth/loginBody:
{
"email":"ambrosekibet15@mail.com","password":"Chicken"
}More example Requests/Responses:
Body:
{
"email": "ambrosekibet15@mail.com",
"password": "Chicken"
}{
"user": {
"userId": "631ee96e988c3dbc29aae01e",
"name": "amkibet",
"role": "admin"
}
}Status Code: 200
Endpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/auth/logoutEndpoint:
Method: POST
Type: RAW
URL: https://e-commerce-api-st3k.onrender.com/auth/registerBody:
{
"name":"ambrose","email":"ambrosekibet15@mail.com","password":"somePass"
}Endpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/usersEndpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/users/631c3556cf21f540d3566c72Endpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/users/showmeMore example Requests/Responses:
{
"user": {
"userId": "631ee96e988c3dbc29aae01e",
"name": "amkibet",
"role": "admin"
}
}Status Code: 200
Endpoint:
Method: PATCH
Type: RAW
URL: https://e-commerce-api-st3k.onrender.com/users/updateuserpasswordBody:
{
"oldPassword":"oldpass","newPassword":"newPass"
}Endpoint:
Method: PATCH
Type: RAW
URL: https://e-commerce-api-st3k.onrender.com/users/updateuserBody:
{
"email":"ambrosekibet15@mail.com","name":"amkibet"
}Endpoint:
Method: POST
Type: RAW
URL: https://e-commerce-api-st3k.onrender.com/ordersBody:
{
"tax": 499,
"shippingFee": 799,
"items": [
{
"name": "bed",
"price": 2699,
"image": "https://dl.airtable.com/.attachmentThumbnails/e8bc3791196535af65f40e36993b9e1f/438bd160",
"amount": 3,
"product": "632ab27fb1f620423bb7bc6e"
},
{
"name": "chair",
"price": 2999,
"image": "https://dl.airtable.com/.attachmentThumbnails/e8bc3791196535af65f40e36993b9e1f/438bd160",
"amount": 2,
"product": "632ab297b1f620423bb7bc70"
}
]
}Endpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/ordersEndpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/orders/632b005239e7c11436353fc7Endpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/orders/showAllMyOrdersEndpoint:
Method: PATCH
Type: RAW
URL: https://e-commerce-api-st3k.onrender.com/orders/632b005239e7c11436353fc7Body:
{
"paymentIntentId":"ccbvcbvccbxbvxvvx","status":"paid"
}Endpoint:
Method: POST
Type: RAW
URL: https://e-commerce-api-st3k.onrender.com/productsBody:
{
"name": "black chair",
"price": 12599,
"image": "https://dl.airtable.com/.attachmentThumbnails/530c07c5ade5acd9934c8dd334458b86/cf91397f",
"colors": ["#000", "#00ff00", "#0000ff"],
"company": "ikea",
"description": "Cloud bread VHS hell of banjo bicycle rights jianbing umami mumblecore etsy 8-bit pok pok +1 wolf. Vexillologist yr dreamcatcher waistcoat, authentic chillwave trust fund. Viral typewriter fingerstache pinterest pork belly narwhal. Schlitz venmo everyday carry kitsch pitchfork chillwave iPhone taiyaki trust fund hashtag kinfolk microdosing gochujang live-edge",
"category": "office"
}Endpoint:
Method: DELETE
Type:
URL: https://e-commerce-api-st3k.onrender.com/products/64292d095932bece4fd4416dEndpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/productsEndpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/products/632ab27fb1f620423bb7bc6eEndpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/products/632ab27fb1f620423bb7bc6e/reviewsEndpoint:
Method: PATCH
Type: RAW
URL: https://e-commerce-api-st3k.onrender.com/products/632ab27fb1f620423bb7bc6eBody:
{
"name":"big chair","price":12905,"description":"hfhfhfhfhh fhfhfhhfh hfhdhdhhdhdh dhdhdhdh"
}Endpoint:
Method: POST
Type: FORMDATA
URL: https://e-commerce-api-st3k.onrender.com/products/uploadImageQuery params:
| Key | Value | Description |
|---|---|---|
Body:
| Key | Value | Description |
|---|---|---|
| image |
Endpoint:
Method: POST
Type: RAW
URL: https://e-commerce-api-st3k.onrender.com/reviewsBody:
{"product":"632ab297b1f620423bb7bc70","title":"bad product","comment":"it was horrible .i btoke my back while just trying to sit","rating":1}Endpoint:
Method: DELETE
Type:
URL: https://e-commerce-api-st3k.onrender.com/reviews/642930db5932bece4fd4417cEndpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/reviews/642930db5932bece4fd4417cEndpoint:
Method: GET
Type:
URL: https://e-commerce-api-st3k.onrender.com/reviewsEndpoint:
Method: PATCH
Type: RAW
URL: https://e-commerce-api-st3k.onrender.com/reviews/642930db5932bece4fd4417cBody:
{"title":"good product","comment":"it was horrible .i btoke my back while just trying to sit","rating":4}Made with ♥ by thedevsaddam | Generated at: 2023-06-04 23:10:26 by docgen