GETPOSTPATCHDELETE
Belgeler
Koleksiyon /v1/certificates, kayıt /v1/certificates/{id}. Yetki ailesi certificates.
Uçlar
| Yöntem | Yol | Kapsam |
|---|---|---|
| GET | /v1/certificates | certificates.read |
| GET | /v1/certificates/{id} | certificates.read |
| POST | /v1/certificates | certificates.create |
| PATCH | /v1/certificates/{id} | certificates.update |
| DELETE | /v1/certificates/{id} | certificates.delete |
| POST | /v1/certificates/{id}/restore | certificates.restore |
Liste parametreleri
| Parametre | Açıklama |
|---|---|
| page | Sayfa numarası. Varsayılan 1. |
| perPage | Sayfa boyutu. 1–100, varsayılan 20. |
| q | Başlık, slug ve çeviri alanlarında arama. |
| status | draft, published, archived veya all. Boşsa yalnızca yayında içerik. |
| locale | Çeviri dili. Varsayılan tr. |
| includeDrafts | 1 ise taslaklar da listelenir. |
| trash | 1 ise yalnızca çöp kutusundakiler. |
Kapsamlar
- certificates.read
- certificates.create
- certificates.update
- certificates.delete
- certificates.restore
Örnekler
cURL
curl -H "Authorization: Bearer crm_live_…" \
"https://api.pamuknakliyattarim.com.tr/v1/certificates"fetch
const res = await fetch("https://api.pamuknakliyattarim.com.tr/v1/certificates?page=1&perPage=20", {
headers: { Authorization: "Bearer " + key }
});
const json = await res.json();Liste yanıtı data ve meta.total / page / perPage / pageCount içerir. Parola, token ve VAPID alanları redakte edilir. Detay: https://api.pamuknakliyattarim.com.tr/v1/certificates/{id}