Debian Codegraph @

fixtures/json/resources/taggedResource.json

raw
1 {
2 "swagger": "2.0",
3 "x-reverb": {
4 "addAnythingYouWant": true
5 },
6 "info": {
7 "x-reverb-info": "this is an example",
8 "version": "1.0.9-abcd",
9 "title": "Swagger Sample API",
10 "description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
11 "termsOfService": "http://helloreverb.com/terms/",
12 "contact": {
13 "name": "wordnik api team",
14 "url": "http://developer.wordnik.com"
15 },
16 "license": {
17 "name": "Creative Commons 4.0 International",
18 "url": "http://creativecommons.org/licenses/by/4.0/"
19 }
20 },
21 "host": "my.api.com",
22 "basePath": "/v1",
23 "schemes": [
24 "http",
25 "https"
26 ],
27 "consumes": [
28 "application/json"
29 ],
30 "produces": [
31 "application/json",
32 "application/xml"
33 ],
34 "tags": [
35 {
36 "name": "pets"
37 }
38 ],
39 "paths": {
40 "x-reverb-path-info": "vendor info",
41 "/pets": {
42 "x-vendor-method": {},
43 "get": {
44 "x-vendor-operation-property": {},
45 "description": "Returns a pet based on ID",
46 "summary": "Find pet by ID",
47 "operationId": "getPetsById",
48 "produces": [
49 "application/json",
50 "text/html"
51 ],
52 "parameters": [
53 {
54 "x-vendor-parameter-property": {},
55 "name": "petId",
56 "in": "path",
57 "description": "ID of pet that needs to be fetched",
58 "required": true,
59 "type": "array",
60 "items": {
61 "type": "string"
62 },
63 "collectionFormat": "csv"
64 }
65 ],
66 "responses": {
67 "x-vendor-operation-response-property": {},
68 "200": {
69 "description": "pet response",
70 "schema": {
71 "$ref": "Pet"
72 }
73 },
74 "default": {
75 "description": "error payload",
76 "schema": {
77 "$ref": "ErrorModel"
78 }
79 }
80 }
81 }
82 }
83 },
84 "definitions": {
85 "Pet": {
86 "x-vendor-model-property": {},
87 "required": [
88 "name"
89 ],
90 "properties": {
91 "name": {
92 "type": "string"
93 },
94 "tag": {
95 "type": "string"
96 }
97 }
98 },
99 "ErrorModel": {
100 "required": [ "code", "message" ],
101 "properties": {
102 "code": {
103 "type": "integer",
104 "format": "int32"
105 },
106 "message": {
107 "type": "string"
108 }
109 }
110 }
111 }
112 }