Web (Site Kurucu)

locations

8 uç · /api/web/v1/locations

İstek örnekleri ucun GERÇEK metodu ve yolundan üretilir. 8 ucun elle doğrulanmış gövde örneği henüz yok; o uçlarda iskelet gövdesizdir — uydurma bir alan yazmıyoruz.

PATCH/api/web/v1/locations/{id}

PUT /api/web/v1/donation-campaigns/{id} — künyenin TAMAMI.

OturumYol parametresi: id
İstek
curl -X PATCH "https://{slug}--panel.web.blesyum.app/api/web/v1/locations/<id>" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
DELETE/api/web/v1/locations/{id}

DELETE /api/web/v1/ab-tests/{id}

OturumYol parametresi: id

⚠ Silme sayaçları da götürür (on delete cascade) ve bu BİLİNÇLİ: testin sayıları testin dışında bir anlam taşımaz, saklanan bir kalıntı ise "hangi teste aitti" sorusunu cevapsız bırakırdı.

İstek
curl -X DELETE "https://{slug}--panel.web.blesyum.app/api/web/v1/locations/<id>" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
GET/api/web/v1/locations/{id}/content

GET /api/web/v1/locations/{id}/content

OturumYol parametresi: id
İstek
curl -X GET "https://{slug}--panel.web.blesyum.app/api/web/v1/locations/<id>/content" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
PUT/api/web/v1/locations/{id}/content

PUT /api/web/v1/locations/{id}/content

OturumYol parametresi: id

🔴 Ağaç YAZMA ANINDA doğrulanır ve normalize edilir (bloklar::dogrula_ve_normalize): sayfa hattının aynı kapısı. Doğrulamayan bir uç, ziyaretçi sayfasında çizilemeyen bir ağaç bırakır ve hata ancak ORADA görünürdü. 🔴 Bölgenin içeriği OLMAZ (şema kısıtı da korur): bölge bir gruplama düğümüdür, gidilecek bir yer değil ve sayfası da yoktur.

İstek
curl -X PUT "https://{slug}--panel.web.blesyum.app/api/web/v1/locations/<id>/content" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
POST/api/web/v1/locations/{id}/exceptions

POST /api/web/v1/locations/{id}/exceptions

OturumYol parametresi: id
İstek
curl -X POST "https://{slug}--panel.web.blesyum.app/api/web/v1/locations/<id>/exceptions" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
PUT/api/web/v1/locations/{id}/hours

PUT /api/web/v1/locations/{id}/hours — haftanın TAMAMI.

OturumYol parametresi: id
İstek
curl -X PUT "https://{slug}--panel.web.blesyum.app/api/web/v1/locations/<id>/hours" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
PUT/api/web/v1/locations/{id}/menu-overrides

PUT /api/web/v1/locations/{id}/menu-overrides — **toptan** ezme.

OturumYol parametresi: id

🔴 Hiçbir şeyi ezmeyen satır REDDEDİLİR (şema kısıtı da korur): fiyatı da gizliliği de değiştirmeyen bir satır, okuyanı "burada bir istisna var" diye yanıltır.

İstek
curl -X PUT "https://{slug}--panel.web.blesyum.app/api/web/v1/locations/<id>/menu-overrides" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
PUT/api/web/v1/locations/{id}/staff

PUT /api/web/v1/locations/{id}/staff — şubenin sorumlu listesi (toptan).

OturumYol parametresi: id

🔴 web.settings.manage çıtası: kime bildirim gideceğini belirlemek bir içerik kararı değil, bir YETKİ kararıdır.

İstek
curl -X PUT "https://{slug}--panel.web.blesyum.app/api/web/v1/locations/<id>/staff" \
  -H "Authorization: Bearer <oturum-token>" \
  -H "Accept: application/json"
Yanıt
{
  "data": "…",
  "trace_id": "01JC…"
}
Bu sayfa işine yaradı mı?