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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.
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());
Received response:
Request failed with error:
Tip: Check that you're properly connected to the network.
If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
You can check the Dev Tools console for debugging information.