| GET | /files/{UserId} |
|---|
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 Eras2FileInfo:
guid: Optional[str] = None
name: Optional[str] = None
file_type: Optional[str] = None
objekt_guid: Optional[str] = None
nutzer_guid: Optional[str] = None
checksum_m_d5: Optional[bytes] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Eras2FileListResponse:
eras2_file_infos: Optional[List[Eras2FileInfo]] = None
response_status: Optional[ResponseStatus] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Eras2FileList:
user_id: Optional[str] = None
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: imm-con-gmbh-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"}}}