...
1{
2 "host": "localhost",
3 "schemes": ["https"],
4 "swagger": "2.0",
5 "produces": ["application/json"],
6 "consumes": ["application/json"],
7 "info": {
8 "title": "Soda Booth",
9 "version": "2.0"
10 },
11 "paths": {
12 "/v2/locations/{location_id}/transactions": {
13 "get": {
14 "summary": "Sodas",
15 "tags": ["Sodas"],
16 "description": "Lists sodas for a particular location.",
17 "parameters": [{
18 "name": "Authorization",
19 "required": true,
20 "type": "string",
21 "in": "header"
22 }, {
23 "name": "location_id",
24 "required": true,
25 "type": "string",
26 "in": "path"
27 }],
28 "responses": {
29 "200": {
30 "schema": {
31 "$ref": "#/definitions/SodaResponse"
32 },
33 "description": "Success"
34 }
35 },
36 "operationId": "List"
37 }
38 }
39 },
40 "definitions": {
41 "SodaBrand": {
42 "description": "",
43 "enum": [
44 "OTHER_BRAND",
45 "PEPSI",
46 "COKE",
47 "CACTUS_COOLER",
48 "JOLT"
49 ],
50 "type": "string"
51 },
52 "SodaResponse": {
53 "description": "",
54 "properties": {
55 "soda_brand": {
56 "$ref": "#/definitions/SodaBrand"
57 }
58 },
59 "type": "object"
60 }
61 }
62}
View as plain text