MENU navbar-image

Introduction

This documentation aims to provide all the information you need to work with our API.

Authenticating requests

This API is not authenticated.

Endpoints

POST api/v1/create-order

Example request:
curl --request POST \
    "http://localhost:8040/api/v1/create-order" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"price\": \"\",
    \"order_id\": 10,
    \"shop_id\": 10
}"
const url = new URL(
    "http://localhost:8040/api/v1/create-order"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "price": "",
    "order_id": 10,
    "shop_id": 10
};

fetch(url, {
    method: "POST",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

POST api/v1/create-order

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

price   number   

Must match the regex /^\d*(.\d{1,})?$/.

order_id   integer   

Example: 10

shop_id   integer   

Example: 10

DELETE api/v1/delete-order

Example request:
curl --request DELETE \
    "http://localhost:8040/api/v1/delete-order" \
    --header "Content-Type: application/json" \
    --header "Accept: application/json" \
    --data "{
    \"order_id\": 16,
    \"shop_id\": 13
}"
const url = new URL(
    "http://localhost:8040/api/v1/delete-order"
);

const headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "order_id": 16,
    "shop_id": 13
};

fetch(url, {
    method: "DELETE",
    headers,
    body: JSON.stringify(body),
}).then(response => response.json());

Request      

DELETE api/v1/delete-order

Headers

Content-Type      

Example: application/json

Accept      

Example: application/json

Body Parameters

order_id   integer   

Example: 16

shop_id   integer   

Example: 13