API
WebContent
12 endpoint del gruppo WebContent.
| Metodo | Path | Descrizione | Rischio | Senza token |
|---|---|---|---|---|
| GET | /web-contents/public | Lists / queries WebContent. Filterable via where (WebContentPublicQueryDto). Query options: token, fields, include, limit, sort. | read | sì |
| GET | /web-contents/public/count | Counts WebContent. Filterable via where (WebContentPublicQueryDto). | read | sì |
| GET | /web-contents/public/get | getContent WebContent. Query options: type, slug. | read | sì |
| GET | /web-contents | Lists / queries WebContent. Filterable via where (WebContentQueryDto). Query options: token, fields, include, limit, sort. | read | no |
| POST | /web-contents | Creates a new WebContent. Accepts fields: type, slug, name, category, relevance, tags, refs, content, banner, summary, preview. | create | no |
| GET | /web-contents/count | Counts WebContent. Filterable via where (WebContentQueryDto). | read | no |
| GET | /web-contents/get | get WebContent. Query options: type, slug. | read | no |
| GET | /web-contents/{content} | Fetches a single WebContent (scoped by content). | read | no |
| PATCH | /web-contents/{content} | Updates a single WebContent (scoped by content). Accepts fields: type, slug, name, category, relevance, tags, refs, content, banner, summary, preview. | mutate | no |
| DELETE | /web-contents/{content} | Deletes a single WebContent (scoped by content). | destructive | no |
| POST | /web-contents/{content}/publish | publish WebContent (scoped by content). | destructive | no |
| POST | /web-contents/{content}/draft | draft WebContent (scoped by content). | mutate | no |
Questo articolo ti è stato utile?