Download OpenAPI specification:Download

categories

listProductCategorys

query Parameters
page
integer

A page number within the paginated result set.

Responses

Response samples

Content type
application/json
{}

products

retrieveProduct

path Parameters
category
required
string

Responses

Response samples

Content type
application/json
{
  • "id": 0,
  • "pictures": [
    ],
  • "name": "string",
  • "description": "string",
  • "price": 0,
  • "stock_amount": 0,
  • "category": 0
}

login

createTokenObtainPair

Takes a set of user credentials and returns an access and refresh JSON web token pair to prove the authentication of those credentials.

Request Body schema:
phone
required
string
password
required
string

Responses

Request samples

Content type
{
  • "phone": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "phone": "string"
}

register

createRegistration

Request Body schema:
phone
required
string <= 64 characters
first_name
required
string
last_name
required
string
email
required
string <email> <= 254 characters
password
required
string <= 128 characters

Responses

Request samples

Content type
{
  • "phone": "string",
  • "first_name": "string",
  • "last_name": "string",
  • "email": "user@example.com",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "phone": "string",
  • "first_name": "string",
  • "last_name": "string",
  • "email": "user@example.com"
}

refresh-token

createTokenRefresh

Request Body schema:
refresh
required
string

Responses

Request samples

Content type
{
  • "refresh": "string"
}

Response samples

Content type
application/json
{
  • "refresh": "string"
}

order

createMakeOrder

Request Body schema: application/json
product
required
integer
address
required
string
amount
required
integer

Responses

Request samples

Content type
application/json
{
  • "product": 1,
  • "address": "Chernivtsi",
  • "amount": 1
}

Response samples

Content type
application/json
null