| POST,OPTIONS | /v1/worker/photo/general |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class GeneralPhotoRequest
{
}
public static class WorkPhotoFiledResponse
{
public Boolean Success = null;
public Integer WorkPhotoID = null;
public Boolean Late = null;
public String Message = null;
public String Distance = null;
public ResponseStatus ResponseStatus = null;
public Boolean isSuccess() { return Success; }
public WorkPhotoFiledResponse setSuccess(Boolean value) { this.Success = value; return this; }
public Integer getWorkPhotoID() { return WorkPhotoID; }
public WorkPhotoFiledResponse setWorkPhotoID(Integer value) { this.WorkPhotoID = value; return this; }
public Boolean isLate() { return Late; }
public WorkPhotoFiledResponse setLate(Boolean value) { this.Late = value; return this; }
public String getMessage() { return Message; }
public WorkPhotoFiledResponse setMessage(String value) { this.Message = value; return this; }
public String getDistance() { return Distance; }
public WorkPhotoFiledResponse setDistance(String value) { this.Distance = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public WorkPhotoFiledResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
}
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/worker/photo/general HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Success: False,
WorkPhotoID: 0,
Late: False,
Message: String,
Distance: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}