FrameAppWS

<back to all web services

InsertReportRQ

Requires Authentication
The following routes are available for this service:
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: Optional[bool] = None
    error: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class InsertReportRQ:
    usua_login: Optional[str] = None
    carp_carp: Optional[Decimal] = None
    rept_rept: Optional[Decimal] = None
    rept_nombre: Optional[str] = None
    rept_tipo: Optional[int] = None
    rept_fecmodi: Optional[datetime.datetime] = None
    rept_fecelimi: Optional[datetime.datetime] = None
    rept_version: Optional[str] = None
    rept_tamano: Optional[int] = None
    blob_blob: Optional[Decimal] = None
    vist_vist: Optional[Decimal] = None

Python InsertReportRQ DTOs

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

HTTP + JSV

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: ws.jimsnwa.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	usua_login: String,
	carp_carp: 0,
	rept_rept: 0,
	rept_nombre: String,
	rept_tipo: 0,
	rept_fecmodi: 0001-01-01,
	rept_fecelimi: 0001-01-01,
	rept_version: String,
	rept_tamano: 0,
	blob_blob: 0,
	vist_vist: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	isInsertado: False,
	Error: String
}