All Verbs | /restfiles/InsertReportRQ |
---|
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 InsertReportRS:
is_insertado: bool = False
error: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class InsertReportRQ:
usua_login: Optional[str] = None
carp_carp: Decimal = decimal.Decimal(0)
rept_rept: Decimal = decimal.Decimal(0)
rept_nombre: Optional[str] = None
rept_tipo: int = 0
rept_fecmodi: datetime.datetime = datetime.datetime(1, 1, 1)
rept_fecelimi: datetime.datetime = datetime.datetime(1, 1, 1)
rept_version: Optional[str] = None
rept_tamano: int = 0
blob_blob: Decimal = decimal.Decimal(0)
vist_vist: Decimal = decimal.Decimal(0)
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /restfiles/InsertReportRQ HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<InsertReportRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<blob_blob>0</blob_blob>
<carp_carp>0</carp_carp>
<rept_fecelimi>0001-01-01T00:00:00</rept_fecelimi>
<rept_fecmodi>0001-01-01T00:00:00</rept_fecmodi>
<rept_nombre>String</rept_nombre>
<rept_rept>0</rept_rept>
<rept_tamano>0</rept_tamano>
<rept_tipo>0</rept_tipo>
<rept_version>String</rept_version>
<usua_login>String</usua_login>
<vist_vist>0</vist_vist>
</InsertReportRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <InsertReportRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos"> <Error>String</Error> <isInsertado>false</isInsertado> </InsertReportRS>