Add routes for /request/version and /request/remote in data server. Add resource tree documentation for /request/version and /request/remote. Closes #85

This commit is contained in:
Héctor Hurtado
2020-09-09 12:45:18 +02:00
parent fc19b921be
commit 774b9202b5
2 changed files with 46 additions and 0 deletions
+2
View File
@@ -59,7 +59,9 @@ func Run(bindAddr string, wg *sync.WaitGroup) {
// request
{"/handlers/{handlerID}/request/method", "GET", getRequestMethod},
{"/handlers/{handlerID}/request/host", "GET", getRequestHost},
{"/handlers/{handlerID}/request/version", "GET", getRequestVersion},
{"/handlers/{handlerID}/request/path", "GET", getRequestPath},
{"/handlers/{handlerID}/request/remote", "GET", getRequestRemote},
{"/handlers/{handlerID}/request/matches/{name}", "GET", getRequestMatches},
{"/handlers/{handlerID}/request/params/{name}", "GET", getRequestParams},
{"/handlers/{handlerID}/request/headers/{name}", "GET", getRequestHeaders},