| GET,POST,OPTIONS | /v1/ErrorLog |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class ErrorLogRequest
{
open var ErrorLog:ArrayList<ErrorLog> = ArrayList<ErrorLog>()
}
open class ErrorLog
{
open var ErrorLogId:Int? = null
open var Message:String? = null
open var Page:String? = null
open var LineNumber:Int? = null
open var ColNumber:Int? = null
open var UserAgent:String? = null
open var LogDate:Date? = null
}
open class ErrorLogResponse
{
open var ResponseStatus:ResponseStatus? = null
open var ErrorLog:ArrayList<ErrorLog> = ArrayList<ErrorLog>()
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/ErrorLog HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ErrorLog:
[
{
ErrorLogId: 0,
Message: String,
Page: String,
LineNumber: 0,
ColNumber: 0,
UserAgent: String,
LogDate: 0001-01-01
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
ErrorLog:
[
{
ErrorLogId: 0,
Message: String,
Page: String,
LineNumber: 0,
ColNumber: 0,
UserAgent: String,
LogDate: 0001-01-01
}
]
}