Debian Codegraph @

fixtures/json/resources/operations/stringPathParamResource.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 "responses": {
20 "200": {
21 "description": "fun",
22 "schema": {"$ref": "Pet"}
23 },
24 "400": {
25 "description": "Invalid ID supplied <= this is purely for documentation",
26 "schema": {"$ref": "ErrorModel"}
27 },
28 "default": {
29 "description": "Unexpected error",
30 "schema": {"$ref": "ErrorModel"}
31 }
32 }
33 }