| GET | /connections |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class GetConnections implements IConvertible
{
GetConnections();
GetConnections.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "GetConnections";
TypeContext? context = _ctx;
}
enum PermissionType
{
Group,
User,
}
abstract class IConnectionPermission extends IInterface
{
bool? Allow;
IConnectorConnection? Connection;
PermissionType? Type;
}
enum PropertyType
{
Binary,
Boolean,
ConnectionString,
Credential,
Integer,
Picklist,
String,
OAuth2,
Certificate,
}
abstract class IConnectionPropertyDescription extends IInterface
{
String? Description;
String? Name;
String? PropertyId;
PropertyType? PropertyType;
}
abstract class IUserGroup extends IIdTemplatesItem, IGroup
{
ReadOnlyCollection<IUser>? Users;
}
abstract class IUser extends IIdTemplatesItem
{
ReadOnlyCollection<IUserGroup>? Groups;
String? EmailAddress;
bool? HasPassword;
String? HomeFolder;
String? Password;
bool? SbcUser;
}
abstract class IConnectorConnection extends IStatus
{
String? ConnectorId;
String? Description;
String? Id;
int? MaxConnections;
String? Name;
ReadOnlyCollection<IConnectionPermission>? Permissions;
ReadOnlyCollection<IConnectionPropertyDescription>? PropertyDescriptions;
IUser? SetupUser;
}
class GetConnectionsResponse implements IConvertible
{
List<IConnectorConnection>? Connections;
bool? IsAuthenticated;
GetConnectionsResponse({this.Connections,this.IsAuthenticated});
GetConnectionsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Connections = JsonConverters.fromJson(json['Connections'],'List<IConnectorConnection>',context!);
IsAuthenticated = json['IsAuthenticated'];
return this;
}
Map<String, dynamic> toJson() => {
'Connections': JsonConverters.toJson(Connections,'List<IConnectorConnection>',context!),
'IsAuthenticated': IsAuthenticated
};
getTypeName() => "GetConnectionsResponse";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'buildmax.org', types: <String, TypeInfo> {
'GetConnections': TypeInfo(TypeOf.Class, create:() => GetConnections()),
'PermissionType': TypeInfo(TypeOf.Enum, enumValues:PermissionType.values),
'IConnectionPermission': TypeInfo(TypeOf.Interface),
'PropertyType': TypeInfo(TypeOf.Enum, enumValues:PropertyType.values),
'IConnectionPropertyDescription': TypeInfo(TypeOf.Interface),
'IUserGroup': TypeInfo(TypeOf.Interface),
'IUser': TypeInfo(TypeOf.Interface),
'IConnectorConnection': TypeInfo(TypeOf.Interface),
'GetConnectionsResponse': TypeInfo(TypeOf.Class, create:() => GetConnectionsResponse()),
'List<IConnectorConnection>': TypeInfo(TypeOf.Class, create:() => <IConnectorConnection>[]),
});
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 /connections HTTP/1.1 Host: buildmax.org Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{Unable to show example output for type 'GetConnectionsResponse' using the custom 'csv' filter}No parameterless constructor defined for this object.