Restavracijski meniji
Poizvedujte in upravljajte svoje restavracijske menije iz API.
GET https://rqrcode.com/api/restaurant-menus/
curl --request GET \
--url 'https://rqrcode.com/api/restaurant-menus/' \
--header 'Authorization: Bearer {api_key}'
| Parametri | Podrobnosti | Opis |
|---|---|---|
| page |
Neobvezno
ui.admin.api_docs.common.types.Celo število
|
Številka strani, za katero želite pridobiti rezultate. Privzeta vrednost je 1. |
| results_per_page |
Neobvezno
ui.admin.api_docs.common.types.Celo število
|
Koliko rezultatov želite na stran. Dovoljene vrednosti so: 10, 25, 50, 100, 250, 500, 1000. Privzeto je 25. |
{
"data": [
{
"id": 1,
"project_id": null,
"name": "Kosilo meni",
"description": "Opoldanski meni",
"datetime": "2026-04-20 07:55:48"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://rqrcode.com/api/restaurant-menus?page=1",
"last": "https://rqrcode.com/api/restaurant-menus?page=1",
"next": null,
"prev": null,
"self": "https://rqrcode.com/api/restaurant-menus?page=1"
}
}
GET https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}
curl --request GET \
--url 'https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}' \
--header 'Authorization: Bearer {api_key}'
{
"data": {
"id": 1,
"project_id": null,
"name": "Kosilo meni",
"description": "Opoldanski meni",
"datetime": "2026-04-20 07:55:48"
}
}
POST https://rqrcode.com/api/restaurant-menus
curl --request POST \
--url 'https://rqrcode.com/api/restaurant-menus' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Večerni meni'
| Parametri | Podrobnosti | Opis |
|---|---|---|
| name |
Obvezno
ui.admin.api_docs.common.types.Niz
|
- |
| description |
Neobvezno
ui.admin.api_docs.common.types.Niz
|
- |
| project_id |
Neobvezno
ui.admin.api_docs.common.types.Celo število
|
- |
{
"data": {
"id": 1
}
}
POST https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}
curl --request POST \
--url 'https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Večerni meni'
| Parametri | Podrobnosti | Opis |
|---|---|---|
| name |
Neobvezno
ui.admin.api_docs.common.types.Niz
|
- |
| description |
Neobvezno
ui.admin.api_docs.common.types.Niz
|
- |
| project_id |
Neobvezno
ui.admin.api_docs.common.types.Celo število
|
- |
{
"data": {
"id": 1
}
}
DELETE https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}
curl --request DELETE \
--url 'https://rqrcode.com/api/restaurant-menus/{restaurant_menu_id}' \
--header 'Authorization: Bearer {api_key}'
Prazno telo odgovora 200 ob uspehu.