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.
{- "content": "string",
- "limit": 0
}{- "id": 0,
- "user": {
- "id": 0,
- "username": "string",
- "status": 0,
- "email": "string",
- "image": "string",
- "isAdmin": true,
- "memberSince": {
- "date": "2019-08-24T14:15:22Z",
- "timezone_type": 0,
- "timezone": "string"
}, - "postCount": 0
}, - "content": "string",
- "postedAt": {
- "date": "2019-08-24T14:15:22Z",
- "timezone_type": 0,
- "timezone": "string"
}
}{- "content": "string",
- "limit": 0
}{- "pages": 0,
- "post": {
- "id": 0,
- "user": {
- "id": 0,
- "username": "string",
- "status": 0,
- "email": "string",
- "image": "string",
- "isAdmin": true,
- "memberSince": {
- "date": "2019-08-24T14:15:22Z",
- "timezone_type": 0,
- "timezone": "string"
}, - "postCount": 0
}, - "content": "string",
- "postedAt": {
- "date": "2019-08-24T14:15:22Z",
- "timezone_type": 0,
- "timezone": "string"
}
}
}Update post with ID.
Requires logged in user to have admin permissions for posts not made by them.
| 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 { |