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