Skip to content

Heccubernny/Kitchen-Khaki

Repository files navigation

#Kitchen API

-Kitchen API -AUTH -Register -Register Request -Register Response -Login -Login Request -Login Response

@host = https://localhost:8000

@id = 1

Auth

Register

POST {{host}}/auth/register

Register Request

{
  "name": "John Doe",
  "email": "[email protected]",
  "username": "jDoe",
  "phone_numer": "+1234567890",
  "address": "remote",
  "password": "1234567890",
  "confirm": "1234567890"
}

Register Response

200 OK
{
  "session-id": "d89c2d9a-eb3e-4075-95ff-b920b55aa104",
  "firstName": "John",
  "lastName": "Doe",
  "email": "[email protected]",
  "token": "eyjhb..hbbQ"
}

Login

POST {{host}}/auth/login

Login Request

{
  "id": "d89c2d9a-eb3e-4075-95ff-b920b55aa104",
  "firstName": "John",
  "lastName": "Doe",
  "email": "[email protected]",
  "token": "eyjhb..hbbQ"
}

Login Response

200 OK
{
  "id": "d89c2d9a-eb3e-4075-95ff-b920b55aa104",
  "email": "[email protected]",
  "password": "1234567890",
  "token": "eyjhb..hbbQ"
}

Product

GET {{host}}/products
GET {{host}}/search
GET {{host}}/single-product/{id}
POST {{host}}/single-product/{id}
POST {{host}}/add-cart/{id}

Admin

GET {{host}}/products
post {{host}}/admin/uploadproduct
GET {{host}}/admin/showproduct
POST {{host}}/admin/single-product/{id}
POST {{host}}/admin/add-cart/{id}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published