cirruswave-j2m
Version:
128 lines • 3.03 kB
JSON
{
"loglevel": "trace",
"servicename": "sampleservice",
"routes": [
{
"route": "/images",
"type": "static",
"configured": true,
"routeclass": "./images",
"description": "app specific images are served from the directory ./images under route /sampleservice/images"
},
{
"route": "/sampleservice/images",
"type": "static",
"configured": true,
"routeclass": "./images",
"description": "app specific images are served from the directory ./images under route /sampleservice/images"
},
{
"route": "/",
"type": "get",
"configured": true,
"routeclass": "./sampleservice.js",
"routefunction": "Root",
"description": "Your first Microservice end point"
},
{
"route": "/values/:value",
"type": "get",
"configured": true,
"routeclass": "./sampleservice.js",
"routefunction": "RouteGetSomething",
"description": "A room with a view",
"paramschema": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"description": "value e.g. any string",
"type": "string"
}
}
},
"examples": [
{
"param": "/values/samplestring"
}
]
},
{
"route": "/values",
"type": "post",
"configured": true,
"routeclass": "./sampleservice.js",
"routefunction": "RoutePostSomething",
"description": "post example",
"bodyschema": {
"type": "object"
},
"examples": [
{
"param": "/values",
"payload": {
"data": "test data for post"
}
}
]
},
{
"route": "/values/:value",
"type": "delete",
"configured": true,
"routeclass": "./sampleservice.js",
"routefunction": "RouteDeleteSomething",
"description": "delete example",
"paramschema": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"description": "value e.g. any string",
"type": "string"
}
}
},
"examples": [
{
"param": "/values/samplestring"
}
]
},
{
"route": "/values/:value",
"type": "put",
"configured": true,
"routeclass": "./sampleservice.js",
"routefunction": "RoutePutSomething",
"description": "put example",
"paramschema": {
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"description": "value e.g. any string",
"type": "string"
}
}
},
"bodyschema": {
"type": "object"
},
"examples": [
{
"param": "/values/samplestring",
"payload": {
"data": "test data for put"
}
}
]
}
]
}