FIBUdataServiceStack

<back to all web services

DokumentUploadRequest

The following routes are available for this service:
GET, POST/fibuscan/DokumentUpload
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.Models

Namespace Global

    Namespace FIBUdataServiceStack.ServiceModel.Messages

        Public Partial Class DokumentUploadRequest
            Public Overridable Property dokumente_id As Long
            Public Overridable Property hash As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class DokumentUploadResponse
            Public Overridable Property dokument As dokumente
        End Class
    End Namespace

    Namespace FIBUdataServiceStack.ServiceModel.Models

        Public Partial Class dokumente
            Implements IPrimaryKey
            Implements IMandnr
            Implements IDel
            Implements ITableBaseErstelltAenderung
            Public Overridable Property ID As Nullable(Of Long)
            Public Overridable Property _erstellt As Nullable(Of Date)
            Public Overridable Property _aenderung As Nullable(Of Date)
            Public Overridable Property mandant As Nullable(Of Long)
            Public Overridable Property Datenindex As Nullable(Of Long)
            Public Overridable Property Dateiname As String
            Public Overridable Property zip_dateiname As String
            Public Overridable Property SubPfad As String
            Public Overridable Property Upload As Nullable(Of Integer)
            Public Overridable Property DownloadExt As Nullable(Of Integer)
            Public Overridable Property Datum As Nullable(Of Date)
            Public Overridable Property Link As String
            Public Overridable Property anlagen As String
            Public Overridable Property metadaten As String
            Public Overridable Property dateityp As Nullable(Of Integer)
            Public Overridable Property del As Nullable(Of Long)
            Public Overridable Property hash As String
            Public Overridable Property guid As String
            <Ignore>
            Public Overridable Property server_hash As String

            <Ignore>
            Public Overridable Property PrimaryKey As Nullable(Of Long)
        End Class
    End Namespace
End Namespace

VB.NET DokumentUploadRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /fibuscan/DokumentUpload HTTP/1.1 
Host: ws4.fibudata.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"dokumente_id":0,"hash":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"dokument":{"ID":0,"_erstellt":"\/Date(-62135596800000-0000)\/","_aenderung":"\/Date(-62135596800000-0000)\/","mandant":0,"Datenindex":0,"Dateiname":"String","zip_dateiname":"String","SubPfad":"String","Upload":0,"DownloadExt":0,"Datum":"\/Date(-62135596800000-0000)\/","Link":"String","anlagen":"String","metadaten":"String","dateityp":0,"del":0,"hash":"String","guid":"String","server_hash":"String","PrimaryKey":0}}