...
1{
2 "swagger": "2.0",
3 "info": {
4 "version": "1.0.0",
5 "title": "Swagger Petstore",
6 "contact": {
7 "name": "wordnik api team",
8 "url": "http://developer.wordnik.com"
9 },
10 "license": {
11 "name": "Creative Commons 4.0 International",
12 "url": "http://creativecommons.org/licenses/by/4.0/"
13 }
14 },
15 "host": "petstore.swagger.wordnik.com",
16 "basePath": "/api",
17 "schemes": [
18 "http"
19 ],
20 "paths": {
21 "/pets": {
22 "get": {
23 "tags": [ "Pet Operations" ],
24 "summary": "finds pets in the system",
25 "responses": {
26 "200": {
27 "description": "pet response",
28 "schema": {
29 "type": "array",
30 "items": {
31 "$ref": "NotCorrectRef"
32 }
33 },
34 "headers": {
35 "x-expires": {
36 "type": "string"
37 }
38 }
39 },
40 "default": {
41 "description": "unexpected error",
42 "schema": {
43 "$ref": "NotCorrectRef"
44 }
45 }
46 }
47 }
48 }
49 },
50 "definitions": {
51 "Pet": {
52 "required": [
53 "id",
54 "name"
55 ],
56 "properties": {
57 "id": {
58 "type": "integer",
59 "format": "int64"
60 },
61 "name": {
62 "type": "string"
63 },
64 "tag": {
65 "type": "string"
66 }
67 }
68 },
69 "Error": {
70 "required": [
71 "code",
72 "message"
73 ],
74 "properties": {
75 "code": {
76 "type": "integer",
77 "format": "int32"
78 },
79 "message": {
80 "type": "string"
81 }
82 }
83 }
84 }
85}
View as plain text