Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
{
"http_context" : "/api",
"endpoints" : [ {
"name" : "svc",
"auth" : {
"pipe" : "auth_pipe"
},
"request": {
"pipe" : "api_pipe"
}
} ]
}{
"http_context" : "/api",
"endpoints" : [ {
"name" : "svc",
"public" : true,
"auth" : {
"pipe" : "auth_pipe"
},
"request": {
"pipe" : "api_pipe"
},
"response" : {
"type" : "application/json",
"template" : "{\n \"now\": \"{{now}}\",\n \"count\": {{items.size}},\n \"elems\": [\n {{#items}}\n { \"id\": \"{{id}}\" }\n {{/items}}\n ],\n \"response\": {{{response}}}\n}"
}
} ]
}{
"http_context" : "/api",
"endpoints" : [ {
"name" : "svc",
"public" : true,
"response" : {
"pipe" : "api_pipe",
"status" : [ {
"regex" : "Custom status.*",
"value" : 444
} ]
}
} ]
}{
"success": true,
"data": {
"items": [
{
"id": "result",
"properties": {
"message": "This is the result from the API demo impl pipe"
}
}
]
}
}{
"name" : "svc01"
{
"http_context" : "/api01",
"endpoints" : [ ]
}"request": {
"handler": "Pipes",
"pipe": "pipe_01",
"headers": "Host",
"params": "*",
"session_overload": true,
"session_id": "token"
}"response": {
"handler": "Pipes",
"content_type": "application/json",
"template": ""
}{
"now": "{{util.now}}",
"count": {{items.size}},
"elems": [
{{#items}}
{ "id": "{{id}}" }
{{/items}}
]
}{{{response}}}"status": [
{
"regex" : "Not found",
"value" : 404
},
{
"regex" : "Custom status.*",
"value" : 444
},
{
"regex" : ".{1,}",
"value" : 500
}
]
{
"firstkey": "fistvalue",
"secondkey": "secondvalue"
}