Created
July 3, 2019 06:04
-
-
Save juliuscanute/eed0e2cc8e9c346a6dad388d4a51a38d to your computer and use it in GitHub Desktop.
Get Total Pages Specification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/v1/dictionary/pages: | |
get: | |
tags: | |
- 'Query Dictionary' | |
responses: | |
'200': | |
description: 'Success' | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/Page' | |
example: | |
start: 1 | |
end: 3 | |
recordsPerPage: 10 | |
'500': | |
description: 'Internal server error' | |
content: | |
application/json: | |
schema: | |
$ref: '#/components/schemas/ErrorMessage' | |
example: | |
message: 'An error has occurred' | |
path: '/v1/dictionary/pages' | |
components: | |
schemas: | |
Page: | |
type: 'object' | |
properties: | |
start: | |
type: 'integer' | |
description: 'Start page number' | |
end: | |
type: 'integer' | |
description: 'End page number' | |
recordsPerPage: | |
type: 'integer' | |
description: 'Records per page' | |
ErrorMessage: | |
type: 'object' | |
properties: | |
message: | |
type: 'string' | |
description: 'Description of the error' | |
path: | |
type: 'string' | |
description: 'Identity of the resource' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment