| GET | /externalreferencestypes | Get reference types | Get reference types |
|---|
import 'package:servicestack/servicestack.dart';
class ExternalReferenceTypeQueryResponse implements IConvertible
{
int? ReferenceTypeId;
String? ReferenceTypeName;
String? ReferenceTypeDescription;
ExternalReferenceTypeQueryResponse({this.ReferenceTypeId,this.ReferenceTypeName,this.ReferenceTypeDescription});
ExternalReferenceTypeQueryResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ReferenceTypeId = json['ReferenceTypeId'];
ReferenceTypeName = json['ReferenceTypeName'];
ReferenceTypeDescription = json['ReferenceTypeDescription'];
return this;
}
Map<String, dynamic> toJson() => {
'ReferenceTypeId': ReferenceTypeId,
'ReferenceTypeName': ReferenceTypeName,
'ReferenceTypeDescription': ReferenceTypeDescription
};
getTypeName() => "ExternalReferenceTypeQueryResponse";
TypeContext? context = _ctx;
}
class GetReferenceTypes implements ICompany, IConvertible
{
/**
* The company id, if empty will use the company id for the user you are logged in with.
*/
// @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")
String? CompanyId;
GetReferenceTypes({this.CompanyId});
GetReferenceTypes.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CompanyId = json['CompanyId'];
return this;
}
Map<String, dynamic> toJson() => {
'CompanyId': CompanyId
};
getTypeName() => "GetReferenceTypes";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: <String, TypeInfo> {
'ExternalReferenceTypeQueryResponse': TypeInfo(TypeOf.Class, create:() => ExternalReferenceTypeQueryResponse()),
'GetReferenceTypes': TypeInfo(TypeOf.Class, create:() => GetReferenceTypes()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /externalreferencestypes HTTP/1.1 Host: api.bokamera.se Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ReferenceTypeId":0,"ReferenceTypeName":"String","ReferenceTypeDescription":"String"}