posts

Posts related operations

List all posts

get
Paramètres de requête
pageintegerOptionnel

The page to fetch

page_sizeintegerOptionnel

The page size to fetch

sortstringOptionnel

The sorting attribute

with_draftsbooleanOptionnel

True also returns the unpublished posts (only for super-admins)

qstringOptionnel

query string to search through resources titles

Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Réponses
200

Success

application/json
get
/posts/
200

Success

Create a post

post
Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Corps
body_typestringOptionnel

HTML or markdown body type

Default: markdown
contentstring · markdownRequis

The post content in Markdown

created_atstring · date-timeLecture seuleOptionnel

The post creation date

credit_tostringOptionnel

An optional credit line (associated to the image)

credit_urlstringOptionnel

An optional link associated to the credits

headlinestringRequis

The post headline

idstringOptionnel

The post identifier

imagestringLecture seuleOptionnel

The post image

last_modifiedstring · date-timeLecture seuleOptionnel

The post last modification date

namestringRequis

The post name

ownerall ofLecture seuleOptionnel

The owner user

pagestringLecture seuleOptionnel

The post web page URL

publishedstring · date-timeLecture seuleOptionnel

The post publication date

slugstringLecture seuleOptionnel

The post permalink string

tagsstring[]Optionnel

Some keywords to help in search

uristringLecture seuleOptionnel

The API URI for this post

Réponses
200

Success

application/json
post
/posts/

Get a given post

get
Paramètres de chemin
poststringRequis

The post ID or slug

Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Réponses
200

Success

application/json
get
/posts/{post}/

Update a given post

put
Paramètres de chemin
poststringRequis

The post ID or slug

Paramètres d'en-tête
X-Fieldsstring · maskOptionnel

An optional fields mask

Corps
body_typestringOptionnel

HTML or markdown body type

Default: markdown
contentstring · markdownRequis

The post content in Markdown

created_atstring · date-timeLecture seuleOptionnel

The post creation date

credit_tostringOptionnel

An optional credit line (associated to the image)

credit_urlstringOptionnel

An optional link associated to the credits

headlinestringRequis

The post headline

idstringOptionnel

The post identifier

imagestringLecture seuleOptionnel

The post image

last_modifiedstring · date-timeLecture seuleOptionnel

The post last modification date

namestringRequis

The post name

ownerall ofLecture seuleOptionnel

The owner user

pagestringLecture seuleOptionnel

The post web page URL

publishedstring · date-timeLecture seuleOptionnel

The post publication date

slugstringLecture seuleOptionnel

The post permalink string

tagsstring[]Optionnel

Some keywords to help in search

uristringLecture seuleOptionnel

The API URI for this post

Réponses
200

Success

application/json
put
/posts/{post}/

Delete a given post

delete
Paramètres de chemin
poststringRequis

The post ID or slug

Réponses
delete
/posts/{post}/

Aucun contenu

Mis à jour

Ce contenu vous a-t-il été utile ?