#Kitchen API
-Kitchen API -AUTH -Register -Register Request -Register Response -Login -Login Request -Login Response
@host = https://localhost:8000
@id = 1
POST {{host}}/auth/register
{
"name": "John Doe",
"email": "[email protected]",
"username": "jDoe",
"phone_numer": "+1234567890",
"address": "remote",
"password": "1234567890",
"confirm": "1234567890"
}
200 OK
{
"session-id": "d89c2d9a-eb3e-4075-95ff-b920b55aa104",
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"token": "eyjhb..hbbQ"
}
POST {{host}}/auth/login
{
"id": "d89c2d9a-eb3e-4075-95ff-b920b55aa104",
"firstName": "John",
"lastName": "Doe",
"email": "[email protected]",
"token": "eyjhb..hbbQ"
}
200 OK
{
"id": "d89c2d9a-eb3e-4075-95ff-b920b55aa104",
"email": "[email protected]",
"password": "1234567890",
"token": "eyjhb..hbbQ"
}
GET {{host}}/products
GET {{host}}/search
GET {{host}}/single-product/{id}
POST {{host}}/single-product/{id}
POST {{host}}/add-cart/{id}
GET {{host}}/products
post {{host}}/admin/uploadproduct
GET {{host}}/admin/showproduct
POST {{host}}/admin/single-product/{id}
POST {{host}}/admin/add-cart/{id}