...
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 "Circular2": {
46 "allOf": [{
47 "$ref": "#/definitions/Circular1"
48 }, {
49 "properties": {
50 "createdAt": {
51 "type": "string",
52 "format": "date-time"
53 }
54 }
55 }]
56 },
57 "Parent": {
58 "$ref": "#/definitions/Circular2"
59 },
60 "Circular1": {
61 "allOf": [{
62 "$ref": "#/definitions/Parent"
63 }, {
64 "properties": {
65 "age": {
66 "type": "integer",
67 "format": "int32"
68 }
69 }
70 }]
71 },
72 "Category": {
73 "properties": {
74 "id": {
75 "type": "integer",
76 "format": "int64"
77 },
78 "name": {
79 "type": "string"
80 }
81 }
82 },
83 "Pet": {
84 "required": [
85 "name",
86 "photoUrls"
87 ],
88 "properties": {
89 "id": {
90 "type": "integer",
91 "format": "int64"
92 },
93 "category": {
94 "$ref": "#/definitions/Category"
95 },
96 "name": {
97 "type": "string",
98 "example": "doggie"
99 },
100 "photoUrls": {
101 "type": "array",
102 "items": {
103 "type": "string"
104 }
105 },
106 "tags": {
107 "type": "array",
108 "items": {
109 "$ref": "#/definitions/Tag"
110 }
111 },
112 "status": {
113 "type": "string",
114 "description": "pet status in the store"
115 }
116 }
117 },
118 "Tag": {
119 "properties": {
120 "id": {
121 "type": "integer",
122 "format": "int64"
123 },
124 "name": {
125 "type": "string"
126 }
127 }
128 }
129 }
130}
View as plain text