...
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 "$ref": "#/definitions/Category"
47 },
48 "Category": {
49 "properties": {
50 "id": {
51 "type": "integer",
52 "format": "int64",
53 "default": 20
54 },
55 "name": {
56 "type": "string"
57 }
58 }
59 },
60 "Pet": {
61 "required": [
62 "name",
63 "photoUrls"
64 ],
65 "properties": {
66 "id": {
67 "type": "integer",
68 "format": "int64"
69 },
70 "category": {
71 "$ref": "#/definitions/Category"
72 },
73 "name": {
74 "type": "string",
75 "example": "doggie"
76 },
77 "photoUrls": {
78 "type": "array",
79 "items": {
80 "type": "string"
81 }
82 },
83 "tags": {
84 "type": "array",
85 "items": {
86 "$ref": "#/definitions/Tag"
87 }
88 },
89 "status": {
90 "type": "string",
91 "description": "pet status in the store"
92 }
93 }
94 },
95 "Tag": {
96 "properties": {
97 "id": {
98 "type": "integer",
99 "format": "int64"
100 },
101 "name": {
102 "type": "string"
103 }
104 }
105 }
106 }
107}
View as plain text