File tree Expand file tree Collapse file tree 1 file changed +56
-1
lines changed Expand file tree Collapse file tree 1 file changed +56
-1
lines changed Original file line number Diff line number Diff line change 7
7
get :
8
8
tags :
9
9
- 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
+ ```
11
66
parameters :
12
67
- name : furits
13
68
in : query
You can’t perform that action at this time.
0 commit comments