diff --git a/exam/api/docs/api.yaml b/exam/api/docs/api.yaml index f1435c6..24bb288 100644 --- a/exam/api/docs/api.yaml +++ b/exam/api/docs/api.yaml @@ -188,7 +188,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/PostResponse" + $ref: "#/components/schemas/PostCreateResponse" 400: description: Missing fields. content: diff --git a/exam/api/docs/index.html b/exam/api/docs/index.html index 53b6a0e..fa1b593 100644 --- a/exam/api/docs/index.html +++ b/exam/api/docs/index.html @@ -434,7 +434,7 @@ data-styled.g137[id="sc-kvXgyf"]{content:"fBvPoH,"}/*!sc*/ " class="sc-euGpHm sc-exayXG fwfkcU kqJXdD sc-dHrNzZ dRdjww">

Success.

Request samples

Content type
application/json
{
  • "content": "string",
  • "limit": 0
}

Response samples

Content type
application/json
{
  • "id": 0,
  • "user": {
    },
  • "content": "string",
  • "postedAt": {
    }
}

Update post

Request samples

Content type
application/json
{
  • "content": "string",
  • "limit": 0
}

Response samples

Content type
application/json
{
  • "pages": 0,
  • "post": {
    }
}

Update post

Update post with ID.
Requires logged in user to have admin permissions for posts not made by them.

Authorizations:
BasicAuthBasicAuth
path Parameters
id
required
integer <int14>

Post ID

@@ -506,7 +506,7 @@ data-styled.g137[id="sc-kvXgyf"]{content:"fBvPoH,"}/*!sc*/ " class="sc-euGpHm sc-exayXG fwfkcU kqJXdD sc-dHrNzZ dRdjww">

User not found.

Response samples

Content type
application/json
{
  • "id": 0,
  • "username": "string",
  • "status": 0,
  • "email": "string",
  • "image": "string",
  • "isAdmin": true,
  • "memberSince": {
    },
  • "postCount": 0
}