Trendsic Platform Service

<back to all web services

StaffQuickFillRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/staff/quickfill
import 'package:servicestack/servicestack.dart';

class StaffQuickFillRow implements IConvertible
{
    String? PositionTag;
    String? Name;
    bool? Filled;
    String? Reason;

    StaffQuickFillRow({this.PositionTag,this.Name,this.Filled,this.Reason});
    StaffQuickFillRow.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        PositionTag = json['PositionTag'];
        Name = json['Name'];
        Filled = json['Filled'];
        Reason = json['Reason'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'PositionTag': PositionTag,
        'Name': Name,
        'Filled': Filled,
        'Reason': Reason
    };

    getTypeName() => "StaffQuickFillRow";
    TypeContext? context = _ctx;
}

class StaffQuickFillResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<StaffQuickFillRow>? Rows = [];
    int? FilledCount;
    int? SkippedCount;

    StaffQuickFillResponse({this.ResponseStatus,this.Rows,this.FilledCount,this.SkippedCount});
    StaffQuickFillResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        Rows = JsonConverters.fromJson(json['Rows'],'List<StaffQuickFillRow>',context!);
        FilledCount = json['FilledCount'];
        SkippedCount = json['SkippedCount'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'Rows': JsonConverters.toJson(Rows,'List<StaffQuickFillRow>',context!),
        'FilledCount': FilledCount,
        'SkippedCount': SkippedCount
    };

    getTypeName() => "StaffQuickFillResponse";
    TypeContext? context = _ctx;
}

class StaffQuickFillRequest implements IConvertible
{
    String? ProjectUID;

    StaffQuickFillRequest({this.ProjectUID});
    StaffQuickFillRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ProjectUID = json['ProjectUID'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ProjectUID': ProjectUID
    };

    getTypeName() => "StaffQuickFillRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'StaffQuickFillRow': TypeInfo(TypeOf.Class, create:() => StaffQuickFillRow()),
    'StaffQuickFillResponse': TypeInfo(TypeOf.Class, create:() => StaffQuickFillResponse()),
    'List<StaffQuickFillRow>': TypeInfo(TypeOf.Class, create:() => <StaffQuickFillRow>[]),
    'StaffQuickFillRequest': TypeInfo(TypeOf.Class, create:() => StaffQuickFillRequest()),
});

Dart StaffQuickFillRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /v1/staff/quickfill HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ProjectUID: String
}
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
		}
	},
	Rows: 
	[
		{
			PositionTag: String,
			Name: String,
			Filled: False,
			Reason: String
		}
	],
	FilledCount: 0,
	SkippedCount: 0
}