-
Notifications
You must be signed in to change notification settings - Fork 14
Detailed resource view response
Return to Home
Allows to retrieve stored data (see PERSISTENCE policy)
GET
http://[RUSH-HOST]/response/{id}
- {id}: Value identifying the relayed request (part of the result of any relayed request)
Not defined yet
Not defined yet
It returns a 200 response including a body with a JSON representation of the result of the job identified by the request. If the job does not exist, it will be an empty object. The fields within the object depend on the persistence policy set by the job creation (statusCode
, headers
, body
). A field traceID
contains the value provided by the topic policy at the job creation. The field error
holds a description of errors at the time of making the request (if any)
Example: Redirect from target host, persistence: body
{
"id":"ccf3dc50-cf3b-11e2-b8f3-596bd36cdc15",
"statusCode":"302",
"traceID":"c0510140-ed35-11e2-8e0e-0338ef47113e",
"headers":{
"content-length":"167",
"content-type":"text/html",
"location":"http://www.tid.es/Paginas/VariationRoot.aspx",
"server":"Microsoft-IIS/6.0",
"microsoftsharepointteamservices":"12.0.0.6524",
"x-powered-by":"ASP.NET",
"date":"Fri, 07 Jun 2013 06:30:52 GMT"
},
"error":"Not relayed request 302",
"body":"<head><title>Document Moved</title></head>\n<body><h1>Object Moved</h1>This document may be found <a HREF=\"http://www.tid.es/Paginas/VariationRoot.aspx\">here</a></body>"
}
Example: The target host does not exist
{
"id":"097c4b90-cf45-11e2-b8f3-596bd36cdc15",
"traceID":"c0510140-ed35-11e2-8e0e-0338ef47113e",
"exception": {
"exceptionId": "SVC Relayed Host Error",
"exceptionText": "getaddrinfo ENOTFOUND"
},
}
No errors are returned under normal operation. An empty object is returned if there is no data for the provided identifier
> GET /response/ccf3dc50-cf3b-11e2-b8f3-596bd36cdc15 HTTP/1.1
> User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5
> Host: localhost:5001
> Accept: */*
>
< HTTP/1.1 200 OK
< content-type: application/json; charset=utf-8
< content-length: 559
< Date: Fri, 07 Jun 2013 06:31:35 GMT
< Connection: keep-alive
<
{"id":"ccf3dc50-cf3b-11e2-b8f3-596bd36cdc15", "statusCode":"302", "traceID":"c0510140-ed35-11e2-8e0e-0338ef47113e", "headers":{"content-length":"167","content-type":"text/html", "location":"http://www.tid.es/Paginas/VariationRoot.aspx", "server":"Microsoft-IIS/6.0", "microsoftsharepointteamservices":"12.0.0.6524", "x-powered-by":"ASP.NET", "date":"Fri, 07 Jun 2013 06:30:52 GMT"},
"error":"Not relayed request 302",
"body":"<head><title>Document Moved</title></head>\n<body><h1>Object Moved</h1>This document may be found <a HREF=\"http://www.tid.es/Paginas/VariationRoot.aspx\">here</a></body>"}
Return to Home
1 - OVERVIEW
2 - API REFERENCE
2.1 - General Notes
2.1.1 - URI Structure
2.1.2 - HTTP Methods
2.1.3 - Security
2.1.4 - Errors
2.1.5 - Encoding
2.2 - REST Resources
2.3 - Data Models
3 - GETTING STARTED
4 - CONTRIBUTE
4.1 - Development Environment Setup
4.2 - How to Run the Tests (unit and acceptance)
4.3 - Tip & Tricks
5 - ANNEX
5.1 - Architecture