Debian Codegraph @

fixtures/json/resources/vendorExtensionExamples.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 "paths": {
35 "x-reverb-path-info": "vendor info",
36 "/pets": {
37 "x-vendor-method": {},
38 "get": {
39 "x-vendor-operation-property": {},
40 "description": "Returns a pet based on ID",
41 "summary": "Find pet by ID",
42 "operationId": "getPetsById",
43 "produces": [
44 "application/json",
45 "text/html"
46 ],
47 "parameters": [
48 {
49 "x-vendor-parameter-property": {},
50 "name": "petId",
51 "in": "path",
52 "description": "ID of pet that needs to be fetched",
53 "required": true,
54 "type": "array",
55 "items": {
56 "type": "string"
57 },
58 "collectionFormat": "csv"
59 }
60 ],
61 "responses": {
62 "x-vendor-operation-response-property": {},
63 "200": {
64 "description": "pet response",
65 "schema": {
66 "$ref": "Pet"
67 }
68 },
69 "default": {
70 "description": "error payload",
71 "schema": {
72 "$ref": "ErrorModel"
73 }
74 }
75 }
76 }
77 }
78 },
79 "definitions": {
80 "Pet": {
81 "x-vendor-model-property": {},
82 "required": [
83 "name"
84 ],
85 "properties": {
86 "name": {
87 "type": "string"
88 },
89 "tag": {
90 "type": "string"
91 }
92 }
93 },
94 "ErrorModel": {
95 "required": [ "code", "message" ],
96 "properties": {
97 "code": {
98 "type": "integer",
99 "format": "int32"
100 },
101 "message": {
102 "type": "string"
103 }
104 }
105 }
106 }
107 }