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: 'digiofficeapigateway.deltares.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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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: digiofficeapigateway.deltares.nl Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"ID":0,"GlobalID":"00000000-0000-0000-0000-000000000000","Number":"String","Name":"String","Description1":"String","Description2":"String","Active":false,"CorrespondenceInternalCompanyID":0,"CorrespondenceInternalCompanyName":"String","CorrespondenceInternalCompanyGlobalID":"00000000-0000-0000-0000-000000000000","Postalcode":"String","City":"String","CountryID":0,"CountryGlobalID":"00000000-0000-0000-0000-000000000000","CountryName":"String","GeoLocation":"String","AddressComplete":"String","CategoryID":0,"CategoryDescription":"String","CategoryGlobalID":"00000000-0000-0000-0000-000000000000"}