APIbackgroundchecklatam

<back to all web services

PeopleList

The following routes are available for this service:
All Verbs/PeopleList/{ApiCode}/{Country}/{FullName}
import 'package:servicestack/servicestack.dart';

class FoundNames implements IConvertible
{
    List<String>? NamesList;

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

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

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

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

enum SearchCountrys
{
    Colombia,
    COL,
    Mexico,
    MEX,
    Chile,
    CHL,
    Brasil,
    BRA,
    Panama,
    PAN,
    Dominicana,
    DOM,
    CostaRica,
    CRI,
    Argentina,
    ARG,
    Ecuador,
    ECU,
    Peru,
    PER,
    ElSalvador,
    SLV,
    Guatemala,
    GTM,
    Honduras,
    HND,
    Venezuela,
    VEN,
    ALL,
    AFG,
    ALB,
    DZA,
    AND,
    AGO,
    ATG,
    ARM,
    AUS,
    AUT,
    AZE,
    BHS,
    BHR,
    BGD,
    BRB,
    BLR,
    BEL,
    BLZ,
    BEN,
    BTN,
    BOL,
    BIH,
    BWA,
    BRN,
    BGR,
    BFA,
    BDI,
    CPV,
    KHM,
    CMR,
    CAN,
    CAF,
    TCD,
    CHN,
    COM,
    COG,
    CIV,
    HRV,
    CUB,
    CYP,
    CZE,
    DNK,
    DJI,
    DMA,
    TLS,
    EGY,
    GNQ,
    ERI,
    EST,
    ETH,
    FJI,
    FIN,
    FRA,
    GAB,
    GMB,
    GEO,
    DEU,
    GHA,
    GRC,
    GRD,
    GIN,
    GNB,
    GUY,
    HTI,
    HUN,
    ISL,
    IND,
    IDN,
    IRN,
    IRQ,
    IRL,
    ISR,
    ITA,
    JAM,
    JPN,
    JOR,
    KAZ,
    KEN,
    KIR,
    PRK,
    KOR,
    KWT,
    KGZ,
    LAO,
    LVA,
    LBN,
    LSO,
    LBR,
    LBY,
    LIE,
    LTU,
    LUX,
    MDG,
    MWI,
    MYS,
    MDV,
    MLI,
    MLT,
    MHL,
    MRT,
    MUS,
    FSM,
    MDA,
    MCO,
    MNG,
    MNE,
    MAR,
    MOZ,
    MMR,
    NAM,
    NRU,
    NPL,
    NLD,
    NZL,
    NIC,
    NER,
    NGA,
    MKD,
    NOR,
    OMN,
    PAK,
    PLW,
    PNG,
    PRY,
    PHL,
    POL,
    PRT,
    QAT,
    ROU,
    RUS,
    RWA,
    KNA,
    LCA,
    VCT,
    WSM,
    SMR,
    STP,
    SAU,
    SEN,
    SRB,
    SYC,
    SLE,
    SGP,
    SVK,
    SVN,
    SLB,
    SOM,
    ZAF,
    SSD,
    ESP,
    LKA,
    SDN,
    SUR,
    SWZ,
    SWE,
    CHE,
    SYR,
    TWN,
    TJK,
    TZA,
    THA,
    TGO,
    TON,
    TTO,
    TUN,
    TUR,
    TKM,
    TUV,
    UGA,
    UKR,
    ARE,
    GBR,
    USA,
    URY,
    UZB,
    VUT,
    VNM,
    YEM,
    ZMB,
    ZWE,
}

class PeopleList implements IConvertible
{
    SearchCountrys? Country;
    String? ApiCode;
    String? FullName;

    PeopleList({this.Country,this.ApiCode,this.FullName});
    PeopleList.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Country = JsonConverters.fromJson(json['Country'],'SearchCountrys',context!);
        ApiCode = json['ApiCode'];
        FullName = json['FullName'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Country': JsonConverters.toJson(Country,'SearchCountrys',context!),
        'ApiCode': ApiCode,
        'FullName': FullName
    };

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

TypeContext _ctx = TypeContext(library: 'api.backgroundchecklatam.com', types: <String, TypeInfo> {
    'FoundNames': TypeInfo(TypeOf.Class, create:() => FoundNames()),
    'SearchCountrys': TypeInfo(TypeOf.Enum, enumValues:SearchCountrys.values),
    'PeopleList': TypeInfo(TypeOf.Class, create:() => PeopleList()),
});

Dart PeopleList 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

HTTP + JSON

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

POST /PeopleList/{ApiCode}/{Country}/{FullName} HTTP/1.1 
Host: api.backgroundchecklatam.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Country":"Colombia","ApiCode":"String","FullName":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"NamesList":["String"]}