All Verbs | /RestApi/Sitefinity/Analytics/GetDashboardPermissionsForUser | ||
---|---|---|---|
All Verbs | /RestApi/GetDashboardPermissionsForUser |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.ServiceStackServices.Model
Imports Telerik.Sitefinity.Analytics.Server.Core.Domain.Model
Namespace Global
Namespace Telerik.Sitefinity.Analytics.Server.Core.Domain.Model
<DataContract>
Public Partial Class DashboardPermission
<DataMember>
Public Overridable Property DashboardId As Guid
<DataMember>
Public Overridable Property CanView As Boolean
End Class
End Namespace
Namespace Telerik.Sitefinity.Analytics.Server.Infrastructure.Services.ServiceStackServices.Model
Public Partial Class GetDashboardPermissionsForUserData
Public Sub New()
Permissions = New List(Of DashboardPermission)
End Sub
Public Overridable Property Permissions As List(Of DashboardPermission)
Public Overridable Property IsAdmin As Boolean
Public Overridable Property IsAdminRole As Boolean
End Class
Public Partial Class GetDashboardPermissionsForUserMessage
Public Overridable Property UserName As String
Public Overridable Property UserId As Guid
Public Overridable Property SiteId As Guid
End Class
End Namespace
End Namespace
VB.NET GetDashboardPermissionsForUserMessage DTOs
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.
POST /RestApi/Sitefinity/Analytics/GetDashboardPermissionsForUser HTTP/1.1
Host: www.asg.com.au
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"UserName":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Permissions":[{"CanView":false}],"IsAdmin":false,"IsAdminRole":false}