· 7 years ago · Aug 18, 2018, 10:30 AM
1{
2"basePath": "/v1",
3"info": {
4 "title": "API",
5 "version": "v1"
6},
7"paths": {
8 "/clients/{id}/things": {
9 "get": {
10 "parameters": [
11 {
12 "in": "path",
13 "name": "id",
14 "required": true,
15 "type": "integer"
16 }
17 ],
18 "produces": [
19 "application/json"
20 ],
21 "responses": {
22 "200": {
23 "description": "listing"
24 }
25 },
26 "security": [
27 {
28 "Bearer": []
29 }
30 ]
31 }
32 }
33},
34"securityDefinitions": {
35 "Bearer": {
36 "in": "header",
37 "name": "Authorization",
38 "type": "apiKey"
39 },
40 "oauth2": {
41 "authorizationUrl": "/oauth/authorize",
42 "flow": "password",
43 "refreshUrl": "/oauth/token",
44 "tokenUrl": "/oauth/token",
45 "type": "oauth2"
46 }
47},
48"swagger": "2.0"
49}