| GET, POST | /fibuscan/Onlinehandel/Upload |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports FIBUdataServiceStack.ServiceModel.Messages
Imports FIBUdataServiceStack.ServiceModel.Common
Imports FIBUdataServiceStack.ServiceModel.Models
Namespace Global
Namespace FIBUdataServiceStack.ServiceModel.Common
Public Enum Oem
fibudata = 0
spectrum = 3
End Enum
End Namespace
Namespace FIBUdataServiceStack.ServiceModel.Messages
Public Partial Class OnlinehandelUploadRequest
Public Overridable Property oem As Nullable(Of Oem)
Public Overridable Property fileName As String
Public Overridable Property Dateityp As Nullable(Of Integer)
Public Overridable Property Dateiname As String
Public Overridable Property Textcodierung As Nullable(Of Integer)
Public Overridable Property Trennzeichen As String
Public Overridable Property Datumskonvertierung As Nullable(Of Integer)
Public Overridable Property Betragskonvertierung As Nullable(Of Integer)
Public Overridable Property kopf_faengt_mit As String
Public Overridable Property standard_waehrung As String
End Class
Public Partial Class OnlinehandelUploadResponse
Public Sub New()
Liste = New List(Of List(Of String))
KopfOptionen = New List(Of OnlinehandelKonfig)
End Sub
Public Overridable Property Liste As List(Of List(Of String))
Public Overridable Property colsCount As Integer
Public Overridable Property guid As String
Public Overridable Property kopf_hash As String
Public Overridable Property KopfOptionen As List(Of OnlinehandelKonfig)
End Class
End Namespace
Namespace FIBUdataServiceStack.ServiceModel.Models
Public Partial Class OnlinehandelKonfig
Public Overridable Property summenkonfiguration As Boolean
Public Overridable Property spaltenkonfiguration As Nullable(Of Integer)
End Class
End Namespace
End Namespace
VB.NET OnlinehandelUploadRequest 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 /fibuscan/Onlinehandel/Upload HTTP/1.1
Host: ws4.fibudata.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"oem":"fibudata","fileName":"String","Dateityp":0,"Dateiname":"String","Textcodierung":0,"Trennzeichen":"String","Datumskonvertierung":0,"Betragskonvertierung":0,"kopf_faengt_mit":"String","standard_waehrung":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Liste":[["String"]],"colsCount":0,"guid":"String","kopf_hash":"String","KopfOptionen":[{"summenkonfiguration":false,"spaltenkonfiguration":0}]}