| POST,OPTIONS | /v1/worker/photo/general |
|---|
import 'package:servicestack/servicestack.dart';
class WorkPhotoFiledResponse implements IConvertible
{
bool? Success;
int? WorkPhotoID;
bool? Late;
String? Message;
String? Distance;
ResponseStatus? ResponseStatus;
WorkPhotoFiledResponse({this.Success,this.WorkPhotoID,this.Late,this.Message,this.Distance,this.ResponseStatus});
WorkPhotoFiledResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Success = json['Success'];
WorkPhotoID = json['WorkPhotoID'];
Late = json['Late'];
Message = json['Message'];
Distance = json['Distance'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Success': Success,
'WorkPhotoID': WorkPhotoID,
'Late': Late,
'Message': Message,
'Distance': Distance,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "WorkPhotoFiledResponse";
TypeContext? context = _ctx;
}
class GeneralPhotoRequest implements IConvertible
{
GeneralPhotoRequest();
GeneralPhotoRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "GeneralPhotoRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'WorkPhotoFiledResponse': TypeInfo(TypeOf.Class, create:() => WorkPhotoFiledResponse()),
'GeneralPhotoRequest': TypeInfo(TypeOf.Class, create:() => GeneralPhotoRequest()),
});
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
}
}
}