Trendsic Platform Service

<back to all web services

ProjectStatusTrackingRequest

Requires Authentication
The following routes are available for this service:
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 .other suffix or ?format=other

HTTP + OTHER

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: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"ProjectId":0,"StatusId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}