| GET | /files/{UserId} |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Files.Management
Namespace Global
Namespace Eras2Web.Service.Desktop.Server.ServiceModel.Eras2Client.Files.Management
<DataContract>
Public Partial Class Eras2FileInfo
Public Sub New()
ChecksumMD5 = New Byte(){}
End Sub
<DataMember(Name:="Guid")>
Public Overridable Property Guid As Guid
<DataMember(Name:="Name")>
Public Overridable Property Name As String
<DataMember(Name:="FileType")>
Public Overridable Property FileType As String
<DataMember(Name:="ObjektGuid")>
Public Overridable Property ObjektGuid As Nullable(Of Guid)
<DataMember(Name:="NutzerGuid")>
Public Overridable Property NutzerGuid As Nullable(Of Guid)
<DataMember(Name:="Checksum")>
Public Overridable Property ChecksumMD5 As Byte()
End Class
<DataContract>
Public Partial Class Eras2FileList
<DataMember(Name:="UserId")>
Public Overridable Property UserId As Guid
End Class
Public Partial Class Eras2FileListResponse
Public Sub New()
Eras2FileInfos = New List(Of Eras2FileInfo)
End Sub
Public Overridable Property Eras2FileInfos As List(Of Eras2FileInfo)
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 .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /files/{UserId} HTTP/1.1
Host: depolt-servdesk.eras-online.de
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"eras2FileInfos":[{"Guid":"00000000000000000000000000000000","Name":"String","FileType":"String","ObjektGuid":"00000000000000000000000000000000","NutzerGuid":"00000000000000000000000000000000","Checksum":"AA=="}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}