Web (Site Kurucu)

assignments

2 endpoints · /api/web/v1/assignments

Request examples are generated from each endpoint's REAL method and path. 2 endpoints have no hand-verified body example yet; their skeleton has no body — we do not invent field names.

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

PATCH /api/web/v1/submissions/{id} — puan ve geri bildirim.

OturumYol parametresi: id

⚠ Puan 0-100 aralığında (DB kısıtı da yakalar); uçtan 422 dönmek kullanıcıya 500 yerine cümle göstermektir.

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

GET /api/web/v1/submissions/{id}/file — teslim dosyası (panel).

OturumYol parametresi: id

🔴 attachment + nosniff + no-store: PDF inline açılırsa içindeki JS panelin origin'inde koşar (portal belgesinin aynı kararı).

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