Skip to main content
POST
/
v1
/
api
/
admin
/
blog
/
articles
Creer un article de blog
curl --request POST \
  --url http://localhost:3091/v1/api/admin/blog/articles \
  --header 'Content-Type: application/json' \
  --data '
{
  "titre": "<string>",
  "contenu": "<string>",
  "resume": "<string>",
  "imageUrl": "<string>",
  "categorie": "<string>",
  "tags": [
    "<string>"
  ],
  "publie": true
}
'
{
  "success": true,
  "message": "<string>",
  "data": {
    "id": 123,
    "titre": "<string>",
    "slug": "<string>",
    "resume": "<string>",
    "contenu": "<string>",
    "imageUrl": "<string>",
    "categorie": "<string>",
    "tags": [
      "<string>"
    ],
    "auteurNom": "<string>",
    "auteurId": 123,
    "publie": true,
    "publishedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "error": {
    "code": "<string>",
    "message": "<string>",
    "details": "<string>"
  },
  "timestamp": "2023-11-07T05:31:56Z"
}

Body

application/json
titre
string
required
Maximum string length: 255
contenu
string
required
resume
string
imageUrl
string
Maximum string length: 500
categorie
string
Maximum string length: 100
tags
string[]
publie
boolean

Response

200 - */*

OK

success
boolean
message
string
data
object
error
object
timestamp
string<date-time>