Debian Codegraph @

fixtures/json/resources/operations/stringPathAndBoolQueryParamResource.json

raw
1 {
2 "description": "Returns a pet based on ID",
3 "summary": "Find pet by ID",
4 "operationId": "getPetsById",
5 "produces": [
6 "application/json",
7 "text/html"
8 ],
9 "parameters": [
10 {
11 "name": "petId",
12 "in": "path",
13 "description": "ID of pet that needs to be fetched",
14 "required": true,
15 "type": "integer",
16 "format": "int64"
17 },
18 {
19 "name": "includeDetails",
20 "in": "query",
21 "description": "include details in response",
22 "required": true,
23 "type": "boolean"
24 }
25 ],
26 "responses": {
27 "200": {
28 "description": "a pet to be returned",
29 "schema": {"$ref": "Pet"}
30 },
31 "default": {
32 "description": "Unexpected error",
33 "schema": {"$ref": "ErrorModel"}
34 }
35 }
36 }