1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
swagger: '2.0'
info:
version: '2'
title: Server Rest API
basePath: /rest/api/2/
schemes:
- https
consumes:
- application/json
produces:
- application/json
paths:
'/search':
get:
operationId: getSearch
# Per docs: https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#parameterObject
# 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".
parameters:
- name: stringTypeInQuery
type: string
in: query
default: "qsValue"
- name: numberTypeInQuery
type: number
in: query
- name: integerTypeInQuery
type: integer
in: query
- name: booleanTypeInQuery
type: boolean
in: query
- name: stringArrayTypeInQuery
type: array
items:
type: string
in: query
- name: numberArrayTypeInQuery
type: array
items:
type: string
in: query
- name: integerArrayTypeInQuery
type: array
items:
type: string
in: query
- name: booleanArrayTypeInQuery
type: array
items:
type: string
in: query
responses:
'200':
description: Success
schema:
$ref: '#/definitions/SearchResponse'
definitions:
SearchResponse:
type: object
properties:
message:
type: string
|