<back to all web services

GetServices

The following routes are available for this service:
GET/RestApi/apiservice/services
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.Web.Api.Web.Services.Dto.Requests
Imports Telerik.Sitefinity.Web.Api.Web.Services.Dto.Responses

Namespace Global

    Namespace Telerik.Sitefinity.Web.Api.Web.Services.Dto.Requests

        Public Partial Class GetServices
            Public Overridable Property Types As Nullable(Of Boolean)
        End Class
    End Namespace

    Namespace Telerik.Sitefinity.Web.Api.Web.Services.Dto.Responses

        Public Partial Class ContentsProxy
            Public Overridable Property Name As String
            Public Overridable Property ReadOnly As Boolean
            Public Overridable Property UrlKey As String
            Public Overridable Property ClrType As String
            Public Overridable Property Access As String
            Public Overridable Property Properties As IEnumerable(Of PropertiesProxy)
            Public Overridable Property Children As IEnumerable(Of ContentsProxy)
            Public Overridable Property AutogenerateProperties As Boolean
            Public Overridable Property parentId As String
        End Class

        Public Partial Class PropertiesProxy
            Public Overridable Property Name As String
            Public Overridable Property PropertyType As String
            Public Overridable Property IsPersistent As Boolean
            Public Overridable Property AllowSort As Boolean
            Public Overridable Property AllowFilter As Boolean
            Public Overridable Property IsKey As Boolean
        End Class

        Public Partial Class ServicesProxy
            Public Overridable Property Name As String
            Public Overridable Property Route As String
            Public Overridable Property UrlName As String
            Public Overridable Property Enabled As Boolean
            Public Overridable Property Access As String
            Public Overridable Property ApiKey As String
            Public Overridable Property AccessControlAllowOrigin As String
            Public Overridable Property AutogenerateTypes As Boolean
            Public Overridable Property Types As IEnumerable(Of ContentsProxy)
            Public Overridable Property Protocol As String
            Public Overridable Property ErrorMessage As String
        End Class

        Public Partial Class ServicesResponse
            Public Sub New()
                Services = New ServicesProxy(){}
            End Sub

            Public Overridable Property Services As ServicesProxy()
            Public Overridable Property ErrorMessage As String
        End Class
    End Namespace
End Namespace

VB.NET GetServices DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /RestApi/apiservice/services HTTP/1.1 
Host: www.asg.com.au 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Services":[{"Name":"String","Route":"String","UrlName":"String","Enabled":false,"Access":"String","ApiKey":"String","AccessControlAllowOrigin":"String","AutogenerateTypes":false,"Types":null,"Protocol":"String","ErrorMessage":"String"}],"ErrorMessage":"String"}