FIBUdataServiceStack

<back to all web services

DokumentDownloadRequest

The following routes are available for this service:
GET, POST/fibuscan/DokumentDownload
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class dokumente(IPrimaryKey, IMandnr, IDel, ITableBaseErstelltAenderung):
    id: Optional[int] = None
    _erstellt: Optional[datetime.datetime] = None
    _aenderung: Optional[datetime.datetime] = None
    mandant: Optional[int] = None
    datenindex: Optional[int] = None
    dateiname: Optional[str] = None
    zip_dateiname: Optional[str] = None
    sub_pfad: Optional[str] = None
    upload: Optional[int] = None
    download_ext: Optional[int] = None
    datum: Optional[datetime.datetime] = None
    link: Optional[str] = None
    anlagen: Optional[str] = None
    metadaten: Optional[str] = None
    dateityp: Optional[int] = None
    del_: Optional[int] = field(metadata=config(field_name='del'), default=None)
    hash: Optional[str] = None
    guid: Optional[str] = None
    # @Ignore()
    server_hash: Optional[str] = None

    # @Ignore()
    primary_key: Optional[int] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DokumentDownloadResponse:
    dokument_bin: Optional[bytes] = None
    dokument: Optional[dokumente] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DokumentDownloadRequest:
    expression: Optional[str] = None

Python DokumentDownloadRequest DTOs

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

HTTP + OTHER

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

POST /fibuscan/DokumentDownload HTTP/1.1 
Host: ws4.fibudata.net 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"expression":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"dokument_bin":"AA==","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}}