GET | /RestApi/files-api |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Telerik.Sitefinity.Frontend.Services.FilesService.DTO
Namespace Global
Namespace Telerik.Sitefinity.Frontend.Services.FilesService.DTO
Public Partial Class FilesGetRequest
Public Overridable Property Path As String
Public Overridable Property Extension As String
Public Overridable Property Skip As Integer
Public Overridable Property Take As Integer
End Class
Public Partial Class FilesItemViewModel
Public Overridable Property Name As String
Public Overridable Property IsFolder As Boolean
Public Overridable Property HasChildren As Boolean
End Class
Public Partial Class FilesViewModel
Public Overridable Property Items As IEnumerable(Of FilesItemViewModel)
Public Overridable Property [Error] As String
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /RestApi/files-api HTTP/1.1 Host: www.asg.com.au Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Error":"String"}