tvpl.api

<back to all web services

GetStampClerkCandidatesRequest

Requires Authentication
The following routes are available for this service:
GET/WorkflowStep/stamp-clerk-candidates
import 'package:servicestack/servicestack.dart';

class StampClerkOption implements IConvertible
{
    int? id;
    String? fullName;
    String? departmentName;

    StampClerkOption({this.id,this.fullName,this.departmentName});
    StampClerkOption.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'id': id,
        'fullName': fullName,
        'departmentName': departmentName
    };

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

class GetStampClerkCandidatesResponse implements IResponseRequest, IConvertible
{
    int? code;
    String? message;
    List<StampClerkOption>? data;

    GetStampClerkCandidatesResponse({this.code,this.message,this.data});
    GetStampClerkCandidatesResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        code = json['code'];
        message = json['message'];
        data = JsonConverters.fromJson(json['data'],'List<StampClerkOption>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'code': code,
        'message': message,
        'data': JsonConverters.toJson(data,'List<StampClerkOption>',context!)
    };

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

class GetStampClerkCandidatesRequest implements IConvertible
{
    int? stepId;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: <String, TypeInfo> {
    'StampClerkOption': TypeInfo(TypeOf.Class, create:() => StampClerkOption()),
    'GetStampClerkCandidatesResponse': TypeInfo(TypeOf.Class, create:() => GetStampClerkCandidatesResponse()),
    'List<StampClerkOption>': TypeInfo(TypeOf.Class, create:() => <StampClerkOption>[]),
    'GetStampClerkCandidatesRequest': TypeInfo(TypeOf.Class, create:() => GetStampClerkCandidatesRequest()),
});

Dart GetStampClerkCandidatesRequest DTOs

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

HTTP + CSV

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

GET /WorkflowStep/stamp-clerk-candidates HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"code":0,"message":"String","data":[{"id":0,"fullName":"String","departmentName":"String"}]}