FrameAppWS

<back to all web services

GetReportsRQ

Requires Authentication
The following routes are available for this service:
All Verbs/restfiles/GetReportsRQ
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 FileItemRecursive:
    id_archivo: Optional[Decimal] = None
    carp_carp: Optional[Decimal] = None
    carp_padre: Optional[Decimal] = None
    is_directory: bool = False
    name: Optional[str] = None
    usua_login: Optional[str] = None
    fecha: datetime.datetime = datetime.datetime(1, 1, 1)
    items: Optional[List[FileItemRecursive]] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetDirectoryRS:
    file_item: Optional[List[FileItemRecursive]] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class GetReportsRQ:
    usua_login: Optional[str] = None
    sist_sist: int = 0
    empr_empr: int = 0
    fechaini: datetime.datetime = datetime.datetime(1, 1, 1)
    fechafin: datetime.datetime = datetime.datetime(1, 1, 1)

Python GetReportsRQ 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 /restfiles/GetReportsRQ HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"usua_login":"String","sist_sist":0,"empr_empr":0,"fechaini":null,"fechafin":null}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"FileItem":[{}]}