summaryrefslogtreecommitdiffstats
path: root/src/seastar/apps/httpd/demo.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/seastar/apps/httpd/demo.json')
-rw-r--r--src/seastar/apps/httpd/demo.json73
1 files changed, 73 insertions, 0 deletions
diff --git a/src/seastar/apps/httpd/demo.json b/src/seastar/apps/httpd/demo.json
new file mode 100644
index 00000000..12261c45
--- /dev/null
+++ b/src/seastar/apps/httpd/demo.json
@@ -0,0 +1,73 @@
+{
+ "apiVersion": "0.0.1",
+ "swaggerVersion": "1.2",
+ "basePath": "{{Protocol}}://{{Host}}",
+ "resourcePath": "/hello",
+ "produces": [
+ "application/json"
+ ],
+ "apis": [
+ {
+ "path": "/hello/world/{var1}/{var2}",
+ "operations": [
+ {
+ "method": "GET",
+ "summary": "Returns the number of seconds since the system was booted",
+ "type": "long",
+ "nickname": "hello_world",
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name":"var2",
+ "description":"Full path of file or directory",
+ "required":true,
+ "allowMultiple":true,
+ "type":"string",
+ "paramType":"path"
+ },
+ {
+ "name":"var1",
+ "description":"Full path of file or directory",
+ "required":true,
+ "allowMultiple":false,
+ "type":"string",
+ "paramType":"path"
+ },
+ {
+ "name":"query_enum",
+ "description":"The operation to perform",
+ "required":true,
+ "allowMultiple":false,
+ "type":"string",
+ "paramType":"query",
+ "enum":["VAL1", "VAL2", "VAL3"]
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "models" : {
+ "my_object": {
+ "id": "my_object",
+ "description": "Demonstrate an object",
+ "properties": {
+ "var1": {
+ "type": "string",
+ "description": "The first parameter in the path"
+ },
+ "var2": {
+ "type": "string",
+ "description": "The second parameter in the path"
+ },
+ "enum_var" : {
+ "type": "string",
+ "description": "Demonstrate an enum returned, note this is not the same enum type of the request",
+ "enum":["VAL1", "VAL2", "VAL3"]
+ }
+ }
+ }
+ }
+}