| All Verbs | /api/quadrant | ||
|---|---|---|---|
| All Verbs | /api/core/quadrant |
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Eros.Subtle.Canvara.WebAPIModel.ServiceModel
Imports Eros.Subtle.Canvara.WebAPIModel.Models
Imports Eros.Saguna.Common.WebAPIModel.Models
Imports Eros.Causal.Common.Entity
Namespace Global
Namespace Eros.Causal.Common.Entity
Public Partial Class ProfileLicenseeRoleView
Public Overridable Property ApplianceId As Guid
Public Overridable Property ApplianceName As String
Public Overridable Property ProfileId As Guid
Public Overridable Property ProfileName As String
Public Overridable Property IsDefaultProfile As Boolean
Public Overridable Property ContactId As Guid
Public Overridable Property ContactName As String
Public Overridable Property ContactTypeId As Guid
Public Overridable Property LicenseeContactRoleConnectionId As Guid
Public Overridable Property UserContactRoleConnectionId As Guid
Public Overridable Property RoleId As Guid
Public Overridable Property RoleName As String
Public Overridable Property LicenseeContactId As Guid
Public Overridable Property LicenseeContactName As String
Public Overridable Property RoleOrder As Integer
Public Overridable Property ProfileImageUrl As String
Public Overridable Property ProfileThumbnailImageUrl As String
Public Overridable Property IsLicenseeRole As Boolean
Public Overridable Property IsManageContactsRole As Boolean
Public Overridable Property IsPlatformRole As Boolean
Public Overridable Property IsDefault As Boolean
End Class
End Namespace
Namespace Eros.Saguna.Common.WebAPIModel.Models
Public Partial Class ListItemModel
Public Overridable Property ListItemId As Guid
Public Overridable Property Name As String
Public Overridable Property Description As String
Public Overridable Property ShortName As String
Public Overridable Property IsDefault As Boolean
Public Overridable Property Order As Integer
Public Overridable Property ListItemTrafficLightId As Guid
Public Overridable Property PrimaryListItemImageId As Guid
Public Overridable Property PrimaryListItemImageUrl As String
Public Overridable Property PrimaryImageThumbnailUrl As String
Public Overridable Property OwnerContactId As Guid
Public Overridable Property RecordStatus As String
End Class
End Namespace
Namespace Eros.Subtle.Canvara.WebAPIModel.Models
Public Partial Class QuadrantModel
Public Overridable Property Appliances As List(Of ListItemModel)
Public Overridable Property UserProfileId As Guid
Public Overridable Property RoleConnectionId As Guid
Public Overridable Property LicenseeContactId As Guid
Public Overridable Property LicenseeContactName As String
Public Overridable Property ApplianceId As Guid
Public Overridable Property FullName As String
Public Overridable Property ImpersonatingUserProfileId As Guid
Public Overridable Property Connections As List(Of ProfileLicenseeRoleView)
End Class
End Namespace
Namespace Eros.Subtle.Canvara.WebAPIModel.ServiceModel
'''<Summary>
'''Get quadrant data for the perspective session id specified in the authentication token
'''</Summary>
<Api(Description:="Get quadrant data for the perspective session id specified in the authentication token")>
Public Partial Class GetQuadrant
Public Overridable Property PerspectiveSessionId As Guid
End Class
Public Partial Class GetQuadrantResponse
Public Overridable Property Quadrant As QuadrantModel
Public Overridable Property Permissions As List(Of Guid)
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
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.
POST /api/quadrant HTTP/1.1
Host: pfapi.pstpf.com.au
Accept: application/json
Content-Type: application/json
Content-Length: length
{"PerspectiveSessionId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Quadrant":{"Appliances":[{"ListItemId":"00000000-0000-0000-0000-000000000000","Name":"String","Description":"String","ShortName":"String","IsDefault":false,"Order":0,"ListItemTrafficLightId":"00000000-0000-0000-0000-000000000000","PrimaryListItemImageId":"00000000-0000-0000-0000-000000000000","PrimaryListItemImageUrl":"String","PrimaryImageThumbnailUrl":"String","OwnerContactId":"00000000-0000-0000-0000-000000000000","RecordStatus":"String"}],"UserProfileId":"00000000-0000-0000-0000-000000000000","RoleConnectionId":"00000000-0000-0000-0000-000000000000","LicenseeContactId":"00000000-0000-0000-0000-000000000000","LicenseeContactName":"String","ApplianceId":"00000000-0000-0000-0000-000000000000","FullName":"String","ImpersonatingUserProfileId":"00000000-0000-0000-0000-000000000000","Connections":[{"ApplianceId":"00000000-0000-0000-0000-000000000000","ApplianceName":"String","ProfileId":"00000000-0000-0000-0000-000000000000","ProfileName":"String","IsDefaultProfile":false,"ContactId":"00000000-0000-0000-0000-000000000000","ContactName":"String","ContactTypeId":"00000000-0000-0000-0000-000000000000","LicenseeContactRoleConnectionId":"00000000-0000-0000-0000-000000000000","UserContactRoleConnectionId":"00000000-0000-0000-0000-000000000000","RoleId":"00000000-0000-0000-0000-000000000000","RoleName":"String","LicenseeContactId":"00000000-0000-0000-0000-000000000000","LicenseeContactName":"String","RoleOrder":0,"ProfileImageUrl":"String","ProfileThumbnailImageUrl":"String","IsLicenseeRole":false,"IsManageContactsRole":false,"IsPlatformRole":false,"IsDefault":false}]},"Permissions":["00000000-0000-0000-0000-000000000000"],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}