Pera ServiceStack

<back to all web services

RequestLogs

The following routes are available for this service:
All Verbs/requestlogs

To override the Content-type in your clients HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /json/reply/RequestLogs HTTP/1.1 
Host: api2.publicemployeeretirementassistance.com 
Content-Type: application/json
Content-Length: length

{"BeforeSecs":0,"AfterSecs":0,"IpAddress":"String","ForwardedFor":"String","UserAuthId":"String","SessionId":"String","Referer":"String","PathInfo":"String","Ids":[0],"BeforeId":0,"AfterId":0,"HasResponse":false,"WithErrors":false,"Skip":0,"Take":0,"EnableSessionTracking":false,"EnableResponseTracking":false,"EnableErrorTracking":false,"DurationLongerThan":"PT0S","DurationLessThan":"PT0S"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Results":[{"Id":0,"DateTime":"0001-01-01T00:00:00.0000000","HttpMethod":"String","AbsoluteUri":"String","PathInfo":"String","RequestBody":"String","RequestDto":{},"UserAuthId":"String","SessionId":"String","IpAddress":"String","ForwardedFor":"String","Referer":"String","Headers":{"String":"String"},"FormData":{"String":"String"},"Items":{"String":{}},"Session":{},"ResponseDto":{},"ErrorResponse":{},"RequestDuration":"PT0S"}],"Usage":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String"}]}}