Debian Codegraph @

fixtures/json/resources/commonParameters.json

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