diff --git a/exam/api/docs/api.yaml b/exam/api/docs/api.yaml index 24bb288..50cc4e5 100644 --- a/exam/api/docs/api.yaml +++ b/exam/api/docs/api.yaml @@ -182,6 +182,15 @@ paths: application/json: schema: $ref: "#/components/schemas/PostCreateRequest" + parameters: + - in: query + name: l + schema: + type: integer + minimum: 0 + maximum: 30 + default: 10 + description: The number of items to return. responses: 200: description: Success. @@ -275,6 +284,14 @@ paths: schema: type: integer format: int14 + - in: query + name: l + schema: + type: integer + minimum: 0 + maximum: 30 + default: 10 + description: The number of items to return. responses: 200: description: Success. @@ -720,8 +737,6 @@ components: properties: content: type: string - limit: - type: number securitySchemes: BasicAuth: type: apiKey diff --git a/exam/api/docs/index.html b/exam/api/docs/index.html index fa1b593..5aaccfc 100644 --- a/exam/api/docs/index.html +++ b/exam/api/docs/index.html @@ -430,11 +430,13 @@ data-styled.g137[id="sc-kvXgyf"]{content:"fBvPoH,"}/*!sc*/ " class="sc-euGpHm sc-exayXG fwfkcU kqJXdD sc-dHrNzZ dRdjww">
Success.
{- "pages": 0,
- "data": [
- {
- "id": 0,
- "user": {
- "username": "string",
- "image": "string"
}, - "content": "string",
- "postedAt": {
- "date": "2019-08-24T14:15:22Z",
- "timezone_type": 0,
- "timezone": "string"
}
}
]
}Create a new post.
-| content required | string |
| limit | number |
{- "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"
}
}
} {- "content": "string"
} {- "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 @@ -450,6 +452,8 @@ data-styled.g137[id="sc-kvXgyf"]{content:"fBvPoH,"}/*!sc*/ " class="sc-euGpHm sc-exayXG fwfkcU kqJXdD">Delete post with ID. Authorizations:BasicAuth path Parameters
query Parameters
ResponsesSuccess. User not found. Response samples
Content type application/json Copy |