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