| GET | /connections |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class GetConnections
{
}
open class GetConnectionsResponse
{
open var Connections:ArrayList<IConnectorConnection>? = null
open var IsAuthenticated:Boolean? = null
}
interface IConnectorConnection : IStatus
{
var ConnectorId:UUID?
var Description:String?
var Id:String?
var MaxConnections:Int?
var Name:String?
var Permissions:ReadOnlyCollection<IConnectionPermission>?
var PropertyDescriptions:ReadOnlyCollection<IConnectionPropertyDescription>?
var SetupUser:IUser?
}
interface IConnectionPermission : IInterface
{
var Allow:Boolean?
var Connection:IConnectorConnection?
var Type:PermissionType?
}
enum class PermissionType
{
Group,
User,
}
interface IConnectionPropertyDescription : IInterface
{
var Description:String?
var Name:String?
var PropertyId:UUID?
var PropertyType:PropertyType?
}
enum class PropertyType(val value:Int)
{
Binary(1),
Boolean(2),
ConnectionString(3),
Credential(4),
Integer(5),
Picklist(6),
String(7),
OAuth2(8),
Certificate(9),
}
interface IUser : IIdTemplatesItem
{
var Groups:ReadOnlyCollection<IUserGroup>?
var EmailAddress:String?
var HasPassword:Boolean?
var HomeFolder:String?
var Password:String?
var SbcUser:Boolean?
var Language:String?
}
interface IUserGroup : IIdTemplatesItem, IGroup
{
var Users:ReadOnlyCollection<IUser>?
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /connections HTTP/1.1 Host: dmsshow.kyocerasolutions.cz Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
IsAuthenticated: False
}