...
1{
2 "swagger": "2.0",
3 "info": {
4 "description": "This is a sample server Petstore server.\n\n[Learn about Swagger](http://swagger.wordnik.com) or join the IRC channel `#swagger` on irc.freenode.net.\n\nFor this sample, you can use the api key `special-key` to test the authorization filters\n",
5 "version": "1.0.0",
6 "title": "Swagger Petstore",
7 "termsOfService": "http://helloreverb.com/terms/",
8 "contact": {
9 "name": "apiteam@wordnik.com"
10 },
11 "license": {
12 "name": "Apache 2.0",
13 "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
14 }
15 },
16 "host": "petstore.swagger.wordnik.com",
17 "basePath": "/v2",
18 "schemes": [
19 "http"
20 ],
21 "paths": {
22 "/pets": {
23 "get": {
24 "tags": ["pet"],
25 "summary": "list the pets",
26 "operationId": "getPets",
27 "responses": {
28 "default": {
29 "headers": {
30 "X-Rate-Limit": {
31 "type": "integer",
32 "format": "int32",
33 "default": 20
34 }
35 },
36 "description": "Generic Error",
37 "schema": {
38 "type": "integer",
39 "format": "uint32",
40 "default": 20
41 }
42 },
43 "200": {
44 "description": "Pets list",
45 "schema": {
46 "type": "array",
47 "items": {
48 "$ref": "#/definitions/Pet"
49 }
50 }
51 }
52 }
53 }
54 }
55 },
56 "definitions": {
57 "Parent": {
58 "$ref": "#/definitions/Category"
59 },
60 "Category": {
61 "properties": {
62 "id": {
63 "type": "integer",
64 "format": "int64"
65 },
66 "name": {
67 "type": "string"
68 }
69 }
70 },
71 "Pet": {
72 "required": [
73 "name",
74 "photoUrls"
75 ],
76 "properties": {
77 "id": {
78 "type": "integer",
79 "format": "int64"
80 },
81 "category": {
82 "$ref": "#/definitions/Category"
83 },
84 "name": {
85 "type": "string",
86 "example": "doggie"
87 },
88 "photoUrls": {
89 "type": "array",
90 "items": {
91 "type": "string"
92 }
93 },
94 "tags": {
95 "type": "array",
96 "items": {
97 "$ref": "#/definitions/Tag"
98 }
99 },
100 "status": {
101 "type": "string",
102 "description": "pet status in the store"
103 }
104 }
105 },
106 "Tag": {
107 "properties": {
108 "id": {
109 "type": "integer",
110 "format": "int64"
111 },
112 "name": {
113 "type": "string"
114 }
115 }
116 }
117 }
118}
119
View as plain text