UNPKG

cirruswave-j2m

Version:
204 lines 5.29 kB
{ "loglevel": "trace", "servicename": "sampleserviceappkey", "routes": [ { "route": "/images", "type": "static", "configured": true, "routeclass": "../examples/images", "description": "app specific images are served from the directory ../examples/images under route /sampleservice/images" }, { "route": "/sampleservice/images", "type": "static", "configured": true, "routeclass": "../examples/images", "description": "app specific images are served from the directory ../examples/images under route /sampleservice/images" }, { "route": "/sampleservice/something/:value1/:value2", "type": "get", "configured": true, "routeclass": "sampleservice.js", "routefunction": "RouteGetSomething", "description": "A room with a view", "examples": [ { "param": "/sampleservice/something/foo/100" } ], "paramschema": { "type": "object", "required": [ "value1", "value2" ], "properties": { "value1": { "description": "value1 is string e.g. foo", "type": "string" }, "value2": { "description": "value2 is number e.g. 100", "type": "integer" } } } }, { "route": "/sampleservice/something/:value1/:value2", "type": "post", "configured": true, "routeclass": "sampleservice.js", "routefunction": "RoutePostSomething", "description": "list of example to do items", "examples": [ { "param": "/sampleservice/something/foo/100", "payload": { "value3": { "value5": "bar" }, "value4": "blah" } } ], "paramschema": { "type": "object", "required": [ "value1", "value2" ], "properties": { "value1": { "description": "value1 is string e.g. foo", "type": "string" }, "value2": { "description": "value2 is number e.g. 100", "type": "integer" } } }, "bodyschema": { "type": "object", "required": [ "value3", "value4" ], "properties": { "value3": { "description": "value3 is an object e.g. {'value5':'bar'}", "type": "object", "required": [ "value5" ], "properties": { "value5": { "description": "value5 is a string inside the value3 object e.g. bar", "type": "string" } } }, "value4": { "description": "value4 is string e.g. blah", "type": "string" } } } }, { "route": "/sampleservice/something/:value1/:value2", "type": "delete", "configured": true, "routeclass": "sampleservice.js", "routefunction": "RouteDeleteSomething", "description": "A room with a view", "examples": [ { "param": "/sampleservice/something/foo/100" } ], "paramschema": { "type": "object", "required": [ "value1", "value2" ], "properties": { "value1": { "description": "value1 is string e.g. foo", "type": "string" }, "value2": { "description": "value2 is number e.g. 100", "type": "integer" } } } }, { "route": "/sampleservice/something/:value1/:value2", "type": "put", "configured": true, "routeclass": "sampleservice.js", "routefunction": "RoutePutSomething", "description": "list of example to do items", "examples": [ { "param": "/sampleservice/something/foo/100", "payload": { "value3": { "value5": "bar" }, "value4": 4000 } } ], "paramschema": { "type": "object", "required": [ "value1", "value2" ], "properties": { "value1": { "description": "value1 is string e.g. foo", "type": "string" }, "value2": { "description": "value2 is number e.g. 100", "type": "integer" } } }, "bodyschema": { "type": "object", "required": [ "value3", "value4" ], "properties": { "value3": { "description": "value3 is an object e.g. {'value5':'bar'}", "type": "object", "required": [ "value5" ], "properties": { "value5": { "description": "value5 is a string inside the value3 object e.g. bar", "type": "string" } } }, "value4": { "description": "value4 is number e.g. 4000", "type": "integer" } } } } ] }