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