Skip to content

Commit 9dbfb93

Browse files
committed
improved dynamic-query-param exaple
1 parent ee0ab5b commit 9dbfb93

File tree

1 file changed

+56
-1
lines changed

1 file changed

+56
-1
lines changed

docs/specs/dynamic-query-params.yaml

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,62 @@ paths:
77
get:
88
tags:
99
- Query Params
10-
summary: Dynamic Query params -
10+
summary: Various ways to pass query params
11+
description: >
12+
Following OpenAPI spec demnstrate various ways to pass query params. It os also possible to create dynamic query params from the keys of an object
13+
14+
```
15+
openapi: 3.0.0
16+
info:
17+
title: Dynamic Query Params
18+
version: 1.0.0
19+
paths:
20+
/dynamic-query-params:
21+
get:
22+
tags:
23+
- Query Params
24+
summary: Various ways to pass query params
25+
parameters:
26+
- name: furits
27+
in: query
28+
style: form
29+
explode: false
30+
schema:
31+
type: array
32+
items:
33+
type: string
34+
- name: colors
35+
in: query
36+
schema:
37+
type: array
38+
items:
39+
type: string
40+
- in: query
41+
name: dynamic-query-params1
42+
schema:
43+
type: object
44+
additionalProperties:
45+
type: string
46+
- in: query
47+
name: dynamic-query-params2
48+
style: form
49+
explode: false
50+
schema:
51+
type: object
52+
additionalProperties:
53+
type: string
54+
- in: query
55+
name: dynamic-query-params3
56+
style: pipeDelimited
57+
explode: false
58+
schema:
59+
type: object
60+
additionalProperties:
61+
type: string
62+
responses:
63+
'200':
64+
description: successful operation
65+
```
1166
parameters:
1267
- name: furits
1368
in: query

0 commit comments

Comments
 (0)