...
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 "examples": {
40 "application/json": [{
41 "id": 123,
42 "photoUrls": [
43 "https://cloud.githubusercontent.com/assets/987686/9987390/24bd7be0-607a-11e5-9c3a-e0c6f333a764.png"
44 ],
45 "name": "issue 63 response ref example"
46 }]
47 }
48 }
49 }
50 }
51 }
52 },
53 "definitions": {
54 "Parent": {
55 "$ref": "#/definitions/Category"
56 },
57 "Category": {
58 "properties": {
59 "id": {
60 "type": "integer",
61 "format": "int64"
62 },
63 "name": {
64 "type": "string"
65 }
66 }
67 },
68 "Pet": {
69 "required": [
70 "name",
71 "photoUrls"
72 ],
73 "properties": {
74 "id": {
75 "type": "integer",
76 "format": "int64"
77 },
78 "category": {
79 "$ref": "#/definitions/Category"
80 },
81 "name": {
82 "type": "string",
83 "example": "doggie"
84 },
85 "photoUrls": {
86 "type": "array",
87 "items": {
88 "type": "string"
89 }
90 },
91 "tags": {
92 "type": "array",
93 "items": {
94 "$ref": "#/definitions/Tag"
95 }
96 },
97 "status": {
98 "type": "string",
99 "description": "pet status in the store"
100 }
101 }
102 },
103 "Tag": {
104 "properties": {
105 "id": {
106 "type": "integer",
107 "format": "int64"
108 },
109 "name": {
110 "type": "string"
111 }
112 }
113 }
114 }
115}
View as plain text