cURL
curl --request GET \ --url https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get \ --header 'Access-Token: <api-key>'
{ "status": true, "data": [ { "id": "<string>", "name": "<string>" } ] }
Retrieve all accessible restaurants/branches
true
Show Restaurant Object
curl -X GET https://www.xn--dkkango-n2a.com/api/integrations/restaurants/get \ -H 'Access-Token: your-access-token'
{ "status": true, "data": [ { "id": "8f2b9ce2-04de-4712-842d-a39f64596fdf", "name": "Akat Şube" }, { "id": "0ca1d2b1-a199-4960-8617-83a659d890c8", "name": "Halaskargazi Şube" } ] }
{ "status": false, "error": "yetkisiz erişim", "message": "Invalid or expired access token" }
Call on Startup
Store Locally
Use in Operations
{ "data": [ { "id": "8f2b9ce2-04de-4712-842d-a39f64596fdf", "name": "Akat Şube" } ] }
{ "data": [ { "id": "8f2b9ce2-04de-4712-842d-a39f64596fdf", "name": "Akat Şube" }, { "id": "0ca1d2b1-a199-4960-8617-83a659d890c8", "name": "Halaskargazi Şube" } ] }