Skip to content

Instantly share code, notes, and snippets.

@juliuscanute
Created July 3, 2019 06:04
Show Gist options
  • Save juliuscanute/eed0e2cc8e9c346a6dad388d4a51a38d to your computer and use it in GitHub Desktop.
Save juliuscanute/eed0e2cc8e9c346a6dad388d4a51a38d to your computer and use it in GitHub Desktop.
Get Total Pages Specification
/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