| GET | /users_intended |
|---|
import 'package:servicestack/servicestack.dart';
// @DataContract
class UsersIntendedLookup implements IConvertible
{
// @DataMember(Order=2)
String? firstName;
// @DataMember(Order=3)
String? lastName;
// @DataMember(Order=4)
String? identificationNumber;
// @DataMember(Order=5)
String? phoneNumber;
// @DataMember(Order=6)
double? latitude;
// @DataMember(Order=7)
double? longitude;
// @DataMember(Order=8)
// @References(typeof(UsersDetails))
int? usersDetailsId;
UsersIntendedLookup({this.firstName,this.lastName,this.identificationNumber,this.phoneNumber,this.latitude,this.longitude,this.usersDetailsId});
UsersIntendedLookup.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
firstName = json['firstName'];
lastName = json['lastName'];
identificationNumber = json['identificationNumber'];
phoneNumber = json['phoneNumber'];
latitude = JsonConverters.toDouble(json['latitude']);
longitude = JsonConverters.toDouble(json['longitude']);
usersDetailsId = json['usersDetailsId'];
return this;
}
Map<String, dynamic> toJson() => {
'firstName': firstName,
'lastName': lastName,
'identificationNumber': identificationNumber,
'phoneNumber': phoneNumber,
'latitude': latitude,
'longitude': longitude,
'usersDetailsId': usersDetailsId
};
getTypeName() => "UsersIntendedLookup";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: <String, TypeInfo> {
'UsersIntendedLookup': TypeInfo(TypeOf.Class, create:() => UsersIntendedLookup()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /users_intended HTTP/1.1 Host: sfgboxapi.dev.scadsoftware.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{Unable to show example output for type 'IEnumerable`1' using the custom 'csv' filter}Cannot dynamically create an instance of type 'System.Collections.Generic.IEnumerable`1[sfgboxapi.ServiceModel.UsersIntendedLookupResponse]'. Reason: Cannot create an instance of an interface.