Add Pagination Object on OpenApi
This commit is contained in:
@@ -84,6 +84,11 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Paginated'
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
result:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/CitizenResponse'
|
$ref: '#/components/schemas/CitizenResponse'
|
||||||
@@ -106,6 +111,11 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Paginated'
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
result:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ArticleResponse'
|
$ref: '#/components/schemas/ArticleResponse'
|
||||||
@@ -171,6 +181,11 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
|
allOf:
|
||||||
|
- $ref: '#/components/schemas/Paginated'
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
result:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ConstitutionResponse'
|
$ref: '#/components/schemas/ConstitutionResponse'
|
||||||
@@ -519,6 +534,33 @@ components:
|
|||||||
version_id:
|
version_id:
|
||||||
$ref: '#/components/schemas/UUID'
|
$ref: '#/components/schemas/UUID'
|
||||||
|
|
||||||
|
Paginated:
|
||||||
|
properties:
|
||||||
|
result:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/UuidEntity'
|
||||||
|
count:
|
||||||
|
type: integer
|
||||||
|
minimum: 0
|
||||||
|
example: 1
|
||||||
|
currentPage:
|
||||||
|
type: integer
|
||||||
|
minimum: 0
|
||||||
|
example: 1
|
||||||
|
limit:
|
||||||
|
type: integer
|
||||||
|
minimum: 0
|
||||||
|
example: 50
|
||||||
|
offset:
|
||||||
|
type: integer
|
||||||
|
minimum: 0
|
||||||
|
example: 1
|
||||||
|
total:
|
||||||
|
type: integer
|
||||||
|
minimum: 0
|
||||||
|
example: 1
|
||||||
|
|
||||||
UserBase:
|
UserBase:
|
||||||
properties:
|
properties:
|
||||||
username:
|
username:
|
||||||
|
|||||||
Reference in New Issue
Block a user