Close the last gaps in the API documentation
The image endpoint, the spec itself and the scheduled publishing run were missing from the spec and the admin page.
This commit is contained in:
+13
@@ -210,6 +210,19 @@ curl -s -X DELETE -H "Authorization: Bearer $TOKEN" \
|
||||
|
||||
Liefert eine Variante aus. Die Pfade stehen am Medium unter `variants`, je Eintrag mit `width`, `format` und `path`.
|
||||
|
||||
## Zeitsteuerung
|
||||
|
||||
### POST /api/v1/publish-due
|
||||
|
||||
Veröffentlicht alle Beiträge, deren Termin erreicht ist. Der Aufruf gehört einer Zeitsteuerung, nicht einem Zugang, und verlangt `CRON_SECRET` als Bearer-Token.
|
||||
|
||||
```bash
|
||||
curl -s -X POST -H "Authorization: Bearer $CRON_SECRET" \
|
||||
http://localhost:4700/api/v1/publish-due
|
||||
```
|
||||
|
||||
Antwort: `{ "published": [...], "meta": { "total": 0 } }`.
|
||||
|
||||
## Werkzeuge
|
||||
|
||||
| Adresse | Inhalt |
|
||||
|
||||
Reference in New Issue
Block a user