FrameAppWS

<back to all web services

EjecutaCuboOpRemotasRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Utilidades/Consultas/Cubos/OperacionesRemotas
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 EjecutaCuboOpRemotasRS:
    data: Optional[List[Dict[str, Object]]] = None
    total_count: int = 0
    error: Optional[str] = None
    sql: Optional[str] = None


class Lenguajes(str, Enum):
    ES = 'ES'
    PT = 'PT'
    EN = 'EN'


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class gridSortOptions:
    selector: Optional[str] = None
    desc: bool = False


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class EjecutaCuboOpRemotasRQ:
    id_vista: int = 0
    id_pivot: int = 0
    parametros: Optional[Dict[str, Object]] = None
    lenguaje: Optional[Lenguajes] = None
    skip: int = 0
    take: int = 0
    filter: Optional[List[Object]] = None
    sort: Optional[gridSortOptions] = None
    group: Optional[List[gridGroupOptions]] = None
    group_summary: Optional[List[gridSummaryOptions]] = None
    total_summary: Optional[List[gridSummaryOptions]] = None
    require_total_count: bool = False
    require_group_count: bool = False


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class gridGroupOptions:
    selector: Optional[str] = None
    desc: bool = False
    is_expanded: bool = False


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

Python EjecutaCuboOpRemotasRQ 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 /Utilidades/Consultas/Cubos/OperacionesRemotas HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	IDVista: 0,
	IDPivot: 0,
	Parametros: 
	{
		String: {}
	},
	Lenguaje: ES,
	skip: 0,
	take: 0,
	filter: 
	[
		{
			
		}
	],
	sort: 
	{
		selector: String,
		desc: False
	},
	group: 
	[
		{
			selector: String,
			desc: False,
			isExpanded: False
		}
	],
	groupSummary: 
	[
		{
			selector: String,
			summaryType: String
		}
	],
	totalSummary: 
	[
		{
			selector: String,
			summaryType: String
		}
	],
	requireTotalCount: False,
	requireGroupCount: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	data: 
	[
		{
			String: {}
		}
	],
	totalCount: 0,
	Error: String,
	SQL: String
}