Returns all common metadata which are required to manage stores.
GET
/api/stores/meta-dataSome system parts have limits or options which needs to be checked in the frontend.
This endpoint provides the information about the limits and options,
so that the frontend can use them but the backend is responsible for the values.
Authorizations
api_key
Type: API Key (header: X-CSRF-Token)
Responses
Success.
JSON
{
"maxCountPickupSlot": 0,
"groceries": [
{
"id": 0,
"name": "string"
}
],
"storeChains": [
{
"id": 0,
"name": "string"
}
],
"categories": [
{
"id": 0,
"name": "string"
}
],
"status": [
{
"id": 0,
"name": "string"
}
],
"weight": [
{
"id": 0,
"name": "string"
}
],
"convinceStatus": [
{
"id": 0,
"name": "string"
}
],
"publicTimes": [
{
"id": 0,
"name": "string"
}
]
}
GET
/api/stores/meta-dataAuthorization
api_key
cURL
curl -X GET \
'http://localhost/api/stores/meta-data'
Samples
cURL
curl -X GET http://localhost/api/stores/meta-data
JavaScript
fetch("http://localhost/api/stores/meta-data")
.then(response => response.json())
.then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/stores/meta-data");
Python
import requests
response = requests.get("http://localhost/api/stores/meta-data")
print(response.json())