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 "parameters": [{
28 "name": "limit",
29 "in": "formData",
30 "description": "number of items to return in the result",
31 "type": "array",
32 "collectionFormat": "csv",
33 "items": {
34 "type": "integer",
35 "format": "int32",
36 "default": 20
37 }
38 }, {
39 "name": "bodyParam",
40 "in": "body",
41 "description": "number of items to return in the result",
42 "schema": {
43 "type": "integer",
44 "format": "int32",
45 "default": 20
46 }
47 }],
48 "responses": {
49 "default": {
50 "description": "Generic Error"
51 },
52 "200": {
53 "description": "Pets list",
54 "schema": {
55 "type": "array",
56 "items": {
57 "$ref": "#/definitions/Pet"
58 }
59 }
60 }
61 }
62 }
63 }
64 },
65 "definitions": {
66 "Parent": {
67 "$ref": "#/definitions/Category"
68 },
69 "Category": {
70 "properties": {
71 "id": {
72 "type": "integer",
73 "format": "int64"
74 },
75 "name": {
76 "type": "string"
77 }
78 }
79 },
80 "Pet": {
81 "required": [
82 "name",
83 "photoUrls"
84 ],
85 "properties": {
86 "id": {
87 "type": "integer",
88 "format": "int64"
89 },
90 "category": {
91 "$ref": "#/definitions/Category"
92 },
93 "name": {
94 "type": "string",
95 "example": "doggie"
96 },
97 "photoUrls": {
98 "type": "array",
99 "items": {
100 "type": "string"
101 }
102 },
103 "tags": {
104 "type": "array",
105 "items": {
106 "$ref": "#/definitions/Tag"
107 }
108 },
109 "status": {
110 "type": "string",
111 "description": "pet status in the store"
112 }
113 }
114 },
115 "Tag": {
116 "properties": {
117 "id": {
118 "type": "integer",
119 "format": "int64"
120 },
121 "name": {
122 "type": "string"
123 }
124 }
125 }
126 }
127}
128
View as plain text