| GET | /api/global/projects/{GlobalID} | 
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class ProjectDetails implements IConvertible
{
    int? ID;
    String? GlobalID;
    String? Number;
    String? Name;
    String? Description1;
    String? Description2;
    bool? Active;
    int? CorrespondenceInternalCompanyID;
    String? CorrespondenceInternalCompanyName;
    String? CorrespondenceInternalCompanyGlobalID;
    String? Postalcode;
    String? City;
    int? CountryID;
    String? CountryGlobalID;
    String? CountryName;
    String? GeoLocation;
    String? AddressComplete;
    int? CategoryID;
    String? CategoryDescription;
    String? CategoryGlobalID;
    ProjectDetails({this.ID,this.GlobalID,this.Number,this.Name,this.Description1,this.Description2,this.Active,this.CorrespondenceInternalCompanyID,this.CorrespondenceInternalCompanyName,this.CorrespondenceInternalCompanyGlobalID,this.Postalcode,this.City,this.CountryID,this.CountryGlobalID,this.CountryName,this.GeoLocation,this.AddressComplete,this.CategoryID,this.CategoryDescription,this.CategoryGlobalID});
    ProjectDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
    fromMap(Map<String, dynamic> json) {
        ID = json['ID'];
        GlobalID = json['GlobalID'];
        Number = json['Number'];
        Name = json['Name'];
        Description1 = json['Description1'];
        Description2 = json['Description2'];
        Active = json['Active'];
        CorrespondenceInternalCompanyID = json['CorrespondenceInternalCompanyID'];
        CorrespondenceInternalCompanyName = json['CorrespondenceInternalCompanyName'];
        CorrespondenceInternalCompanyGlobalID = json['CorrespondenceInternalCompanyGlobalID'];
        Postalcode = json['Postalcode'];
        City = json['City'];
        CountryID = json['CountryID'];
        CountryGlobalID = json['CountryGlobalID'];
        CountryName = json['CountryName'];
        GeoLocation = json['GeoLocation'];
        AddressComplete = json['AddressComplete'];
        CategoryID = json['CategoryID'];
        CategoryDescription = json['CategoryDescription'];
        CategoryGlobalID = json['CategoryGlobalID'];
        return this;
    }
    Map<String, dynamic> toJson() => {
        'ID': ID,
        'GlobalID': GlobalID,
        'Number': Number,
        'Name': Name,
        'Description1': Description1,
        'Description2': Description2,
        'Active': Active,
        'CorrespondenceInternalCompanyID': CorrespondenceInternalCompanyID,
        'CorrespondenceInternalCompanyName': CorrespondenceInternalCompanyName,
        'CorrespondenceInternalCompanyGlobalID': CorrespondenceInternalCompanyGlobalID,
        'Postalcode': Postalcode,
        'City': City,
        'CountryID': CountryID,
        'CountryGlobalID': CountryGlobalID,
        'CountryName': CountryName,
        'GeoLocation': GeoLocation,
        'AddressComplete': AddressComplete,
        'CategoryID': CategoryID,
        'CategoryDescription': CategoryDescription,
        'CategoryGlobalID': CategoryGlobalID
    };
    getTypeName() => "ProjectDetails";
    TypeContext? context = _ctx;
}
class GetProjectDetailsByGlobalID implements IConvertible
{
    String? GlobalID;
    GetProjectDetailsByGlobalID({this.GlobalID});
    GetProjectDetailsByGlobalID.fromJson(Map<String, dynamic> json) { fromMap(json); }
    fromMap(Map<String, dynamic> json) {
        GlobalID = json['GlobalID'];
        return this;
    }
    Map<String, dynamic> toJson() => {
        'GlobalID': GlobalID
    };
    getTypeName() => "GetProjectDetailsByGlobalID";
    TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'doapigw.baasbv.nl', types: <String, TypeInfo> {
    'ProjectDetails': TypeInfo(TypeOf.Class, create:() => ProjectDetails()),
    'GetProjectDetailsByGlobalID': TypeInfo(TypeOf.Class, create:() => GetProjectDetailsByGlobalID()),
});
Dart GetProjectDetailsByGlobalID DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/global/projects/{GlobalID} HTTP/1.1 
Host: doapigw.baasbv.nl 
Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ProjectDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Project"> <Active>false</Active> <AddressComplete>String</AddressComplete> <CategoryDescription>String</CategoryDescription> <CategoryGlobalID>00000000-0000-0000-0000-000000000000</CategoryGlobalID> <CategoryID>0</CategoryID> <City>String</City> <CorrespondenceInternalCompanyGlobalID>00000000-0000-0000-0000-000000000000</CorrespondenceInternalCompanyGlobalID> <CorrespondenceInternalCompanyID>0</CorrespondenceInternalCompanyID> <CorrespondenceInternalCompanyName>String</CorrespondenceInternalCompanyName> <CountryGlobalID>00000000-0000-0000-0000-000000000000</CountryGlobalID> <CountryID>0</CountryID> <CountryName>String</CountryName> <Description1>String</Description1> <Description2>String</Description2> <GeoLocation>String</GeoLocation> <GlobalID>00000000-0000-0000-0000-000000000000</GlobalID> <ID>0</ID> <Name>String</Name> <Number>String</Number> <Postalcode>String</Postalcode> </ProjectDetails>