...
1{
2 "swagger": "2.0",
3 "info": {
4 "title": "Item API",
5 "description": "Item API",
6 "version": "1.0.0"
7 },
8 "host": "item.api.local",
9 "basePath": "/v1",
10 "securityDefinitions": {
11 "key": {
12 "type": "apiKey",
13 "name": "x-item-token",
14 "in": "header"
15 }
16 },
17 "security": [
18 {
19 "key": []
20 }
21 ],
22 "consumes": [
23 "application/json"
24 ],
25 "produces": [
26 "application/json"
27 ],
28 "schemes": [
29 "http"
30 ],
31 "parameters": {
32 "itemParameter": {
33 "description": "Item",
34 "name": "bodyParam",
35 "in": "body",
36 "schema": {
37 "$ref": "item4.json#/item"
38 }
39 }
40 },
41 "paths": {
42 "/item": {
43 "get": {
44 "operationId": "GetItem",
45 "parameters": [
46 {
47 "$ref": "#/parameters/itemParameter"
48 }
49 ],
50 "responses": {
51 "200": {
52 "description": "item detail response",
53 "schema": {
54 "$ref": "item4.json#/item"
55 }
56 }
57 }
58 }
59 }
60 }
61}
View as plain text