| GET,POST,PUT,DELETE,OPTIONS | /v1/Project/Status/Tracking |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class ProjectStatusTrackingResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
ProjectStatusTrackingResponse({this.ResponseStatus});
ProjectStatusTrackingResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "ProjectStatusTrackingResponse";
TypeContext? context = _ctx;
}
class ProjectStatusTrackingRequest implements IConvertible
{
int? ProjectId;
int? StatusId;
ProjectStatusTrackingRequest({this.ProjectId,this.StatusId});
ProjectStatusTrackingRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ProjectId = json['ProjectId'];
StatusId = json['StatusId'];
return this;
}
Map<String, dynamic> toJson() => {
'ProjectId': ProjectId,
'StatusId': StatusId
};
getTypeName() => "ProjectStatusTrackingRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'ProjectStatusTrackingResponse': TypeInfo(TypeOf.Class, create:() => ProjectStatusTrackingResponse()),
'ProjectStatusTrackingRequest': TypeInfo(TypeOf.Class, create:() => ProjectStatusTrackingRequest()),
});
Dart ProjectStatusTrackingRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Project/Status/Tracking HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"ProjectId":0,"StatusId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}