POST | /log/error |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class ConsumerApi
{
public static class LogFrontEndErrorRequest implements IPost
{
public String location = null;
public String message = null;
public String stackTrace = null;
public String getLocation() { return location; }
public LogFrontEndErrorRequest setLocation(String value) { this.location = value; return this; }
public String getMessage() { return message; }
public LogFrontEndErrorRequest setMessage(String value) { this.message = value; return this; }
public String getStackTrace() { return stackTrace; }
public LogFrontEndErrorRequest setStackTrace(String value) { this.stackTrace = value; return this; }
}
public static class LogFrontEndErrorResponse
{
public Date loggedAt = null;
public Date getLoggedAt() { return loggedAt; }
public LogFrontEndErrorResponse setLoggedAt(Date value) { this.loggedAt = value; return this; }
}
}
Java LogFrontEndErrorRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /log/error HTTP/1.1
Host: unstable-consumer-api.brovs.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"location":"String","message":"String","stackTrace":"String"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"loggedAt":"0001-01-01T00:00:00.0000000+00:00"}