Echo

1
2
3
4
5
{
    "Name": "RESTar.Echo",
    "Kind": "EntityResource",
    "Methods": ["GET", "REPORT", "HEAD"]
}

RESTar.Echo is a test and utility resource that simply returns the request URI conditions as an object, where conditions keys are property names, and condition values are property values.

Example:

1
2
3
4
5
6
7
8
GET https://my-server.com/rest/echo/Name=Erik&Job=Developer&Other%20thing!=null
Headers: 'Authorization: apikey mykey'
Response body:
[{
    "Name": "Erik",
    "Job": "Developer",
    "Other thing": null
}]