Create reusable Paginator OpenAPI component to reduce YAML/JSON payload and clutter.
Components->Parameters Schema:
x-swagger-bake:
components:
parameters:
paginatorPage:
name: page
in: query
required: false
schema:
description: ''
type: integer
paginatorLimit:
name: limit
in: query
required: false
schema:
description: ''
type: integer
paginatorDirection:
name: direction
in: query
required: false
schema:
description: ''
type: string
enum:
- asc
- desc
Referenced via:
get:
parameters:
- $ref: '#/components/parameters/paginatorPage'
- $ref: '#/components/parameters/paginatorLimit'
- name: sort
in: query
required: false
schema:
description: ''
type: string
enum:
- id
- first_name
- last_name
- modified
- $ref: '#/components/parameters/paginatorDirection'
Create reusable Paginator OpenAPI component to reduce YAML/JSON payload and clutter.
Components->Parameters Schema:
Referenced via: