...
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 "responses": {
32 "itemResponse": {
33 "description": "Item",
34 "schema": {
35 "$ref": "item2.json#/item"
36 }
37 }
38 },
39 "paths": {
40 "/item": {
41 "get": {
42 "operationId": "GetItem",
43 "responses": {
44 "200": {
45 "description": "item detail response",
46 "schema": {
47 "$ref": "item2.json#/item"
48 }
49 },
50 "default": {
51 "$ref": "#/responses/itemResponse"
52 }
53 }
54 }
55 }
56 }
57}
View as plain text