GET | /RestApi/apiservice/services/{Route}/{UrlName} |
---|
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 GetService
Public Overridable Property UrlName As String
Public Overridable Property Route As String
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
End Namespace
End Namespace
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 /RestApi/apiservice/services/{Route}/{UrlName} HTTP/1.1 Host: www.asg.com.au Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { "Name": "String", "Route": "String", "UrlName": "String", "Enabled": false, "Access": "String", "ApiKey": "String", "AccessControlAllowOrigin": "String", "AutogenerateTypes": false, "Types": null, "Protocol": "String", "ErrorMessage": "String" }