]> git.proxmox.com Git - ceph.git/blob - ceph/src/seastar/apps/httpd/demo.json
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / seastar / apps / httpd / demo.json
1 {
2 "apiVersion": "0.0.1",
3 "swaggerVersion": "1.2",
4 "basePath": "{{Protocol}}://{{Host}}",
5 "resourcePath": "/hello",
6 "produces": [
7 "application/json"
8 ],
9 "apis": [
10 {
11 "path": "/hello/world/{var1}/{var2}",
12 "operations": [
13 {
14 "method": "GET",
15 "summary": "Returns the number of seconds since the system was booted",
16 "type": "long",
17 "nickname": "hello_world",
18 "produces": [
19 "application/json"
20 ],
21 "parameters": [
22 {
23 "name":"var2",
24 "description":"Full path of file or directory",
25 "required":true,
26 "allowMultiple":true,
27 "type":"string",
28 "paramType":"path"
29 },
30 {
31 "name":"var1",
32 "description":"Full path of file or directory",
33 "required":true,
34 "allowMultiple":false,
35 "type":"string",
36 "paramType":"path"
37 },
38 {
39 "name":"query_enum",
40 "description":"The operation to perform",
41 "required":true,
42 "allowMultiple":false,
43 "type":"string",
44 "paramType":"query",
45 "enum":["VAL1", "VAL2", "VAL3"]
46 }
47 ]
48 }
49 ]
50 }
51 ],
52 "models" : {
53 "my_object": {
54 "id": "my_object",
55 "description": "Demonstrate an object",
56 "properties": {
57 "var1": {
58 "type": "string",
59 "description": "The first parameter in the path"
60 },
61 "var2": {
62 "type": "string",
63 "description": "The second parameter in the path"
64 },
65 "enum_var" : {
66 "type": "string",
67 "description": "Demonstrate an enum returned, note this is not the same enum type of the request",
68 "enum":["VAL1", "VAL2", "VAL3"]
69 }
70 }
71 }
72 }
73 }