...
1swagger: '2.0'
2info:
3 version: '2'
4 title: Server Rest API
5
6basePath: /rest/api/2/
7schemes:
8 - https
9consumes:
10 - application/json
11produces:
12 - application/json
13paths:
14 '/search':
15 get:
16 operationId: getSearch
17 # Per docs: https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#parameterObject
18 # Required. The type of the parameter. Since the parameter is not located at the request body, it is limited to simple types (that is, not an object). The value MUST be one of "string", "number", "integer", "boolean", "array" or "file".
19 parameters:
20 - name: stringTypeInQuery
21 type: string
22 in: query
23 default: "qsValue"
24 - name: numberTypeInQuery
25 type: number
26 in: query
27 - name: integerTypeInQuery
28 type: integer
29 in: query
30 - name: booleanTypeInQuery
31 type: boolean
32 in: query
33
34 - name: stringArrayTypeInQuery
35 type: array
36 items:
37 type: string
38 in: query
39 - name: numberArrayTypeInQuery
40 type: array
41 items:
42 type: string
43 in: query
44 - name: integerArrayTypeInQuery
45 type: array
46 items:
47 type: string
48 in: query
49 - name: booleanArrayTypeInQuery
50 type: array
51 items:
52 type: string
53 in: query
54
55 responses:
56 '200':
57 description: Success
58 schema:
59 $ref: '#/definitions/SearchResponse'
60
61
62
63definitions:
64 SearchResponse:
65 type: object
66 properties:
67 message:
68 type: string
View as plain text