swagger parameters multiple query example
Example 1: swagger parameters multiple query example
paths:
/values:
get:
summary: Get values
parameters:
- in: query
name: type
required: false
type: string
- in: query
name: from
required: false
type: string
format: date
- in: query
name: to
required: false
type: string
format: date
responses:
'200':
description: values
schema:
type: array
items:
$ref: '#/definitions/value'
Example 2: swagger parameters multiple query example
'/pages':
get:
tags:
-
summary: get the list of pages
operationId: getPages
produces:
- application/json
parameters:
- name: page_id
in: query
description: some description
required: false
type: string
collectionFormat: multi
- name: page_detail
in: query
description: some description
required: false
type: string
responses:
'200':
description: OK
'401':
description: Authentication Failed
'404':
description: Not Found
'503':
description: Service Not Available