forked from RedHatInsights/insights-host-inventory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpagination.yaml
57 lines (57 loc) · 1.26 KB
/
pagination.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
openapi: 3.0.0
info:
description: includes for pagination
version: 1.0.0
title: example pagination
paths: {}
components:
parameters:
pageParam:
name: page
in: query
required: false
schema:
type: integer
minimum: 1
default: 1
description: A page number of the items to return.
perPageParam:
name: per_page
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 100
default: 50
description: A number of items to return per page.
schemas:
PaginationOut:
type: object
required:
- count
- page
- per_page
- total
properties:
count:
$ref: '#/components/schemas/Count'
page:
$ref: '#/components/schemas/Page'
per_page:
$ref: '#/components/schemas/PerPage'
total:
$ref: '#/components/schemas/Total'
Total:
type: integer
description: Total number of items
Count:
type: integer
description: The number of items on the current page
Page:
type: integer
description: The page number
PerPage:
type: integer
description: The number of items to return per page