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