application/json

Body Required

  • title string

    Minimum length is 5, maximum length is 100.

  • content string

    Minimum length is 1.

  • postType string
  • privacy string
  • metadata string

Responses

  • 200 */*

    OK

    Hide response attributes Show response attributes object
    • title string

      Minimum length is 5, maximum length is 100.

    • content string

      Minimum length is 1.

    • postType string
    • privacy string
    • metadata string
POST /posts
curl \
 --request POST 'http://localhost:8080/posts' \
 --header "Content-Type: application/json" \
 --data '{"title":"string","content":"string","postType":"string","privacy":"string","metadata":"string"}'
Request examples
{
  "title": "string",
  "content": "string",
  "postType": "string",
  "privacy": "string",
  "metadata": "string"
}
Response examples (200)
{
  "title": "string",
  "content": "string",
  "postType": "string",
  "privacy": "string",
  "metadata": "string"
}