5 endpoints.
| Method | Path | Summary |
|---|---|---|
GET | /api/blog-sections | List blog sections (same read rule as categories) |
POST | /api/blog-sections | Create a section (blogs:manage | blogs:moderate) |
DELETE | /api/blog-sections/{id} | Delete a section (blogs:manage | blogs:moderate) |
GET | /api/blog-sections/{id} | One section |
PUT | /api/blog-sections/{id} | Edit a section (blogs:manage | blogs:moderate) |
GET /api/blog-sectionsAuth: optional — a token changes what you can see (see "Who may read what").
Responses
| Status | Description | Body |
|---|---|---|
200 | success, data: [BlogSection] | — |
POST /api/blog-sectionsAuth: Bearer JWT required.
Responses
| Status | Description | Body |
|---|---|---|
201 | success, data: BlogSection | — |
DELETE /api/blog-sections/{id}Auth: Bearer JWT required.
Responses
| Status | Description | Body |
|---|---|---|
200 | success | — |
GET /api/blog-sections/{id}Auth: optional — a token changes what you can see (see "Who may read what").
Responses
| Status | Description | Body |
|---|---|---|
200 | success, data: BlogSection | — |
PUT /api/blog-sections/{id}Auth: Bearer JWT required.
Responses
| Status | Description | Body |
|---|---|---|
200 | success, data: BlogSection | — |