FrameAppWS

<back to all web services

ArbolPermisosFormasRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Usuarios/Permisos/Forma
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 PermisosItems:
    codigo_menu: Decimal = decimal.Decimal(0)
    codigo_padre: Decimal = decimal.Decimal(0)
    nombre: Optional[str] = None
    descripcion: Optional[str] = None
    tiene_permiso: bool = False
    tipo_ejecucion: Optional[str] = None
    id_ejecucion: Optional[str] = None
    info_adicional: Optional[str] = None
    orden: int = 0
    items: Optional[List[PermisosItems]] = None
    icono: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class PermisosFormas:
    cod_forma: int = 0
    nombre: Optional[str] = None
    descripcion: Optional[str] = None
    items: Optional[List[PermisosItems]] = None


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


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ArbolPermisosFormasRQ:
    usuario: Optional[str] = None
    cod_sistema: int = 0
    cod_empresa: int = 0
    cod_modulo: int = 0
    cod_forma: int = 0
    lenguaje: Optional[Lenguajes] = None

Python ArbolPermisosFormasRQ 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 /Usuarios/Permisos/Forma HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Usuario: String,
	CodSistema: 0,
	CodEmpresa: 0,
	CodModulo: 0,
	CodForma: 0,
	Lenguaje: ES
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	CodForma: 0,
	Nombre: String,
	Descripcion: String,
	Items: 
	[
		{
			CodigoMenu: 0,
			CodigoPadre: 0,
			Nombre: String,
			Descripcion: String,
			TienePermiso: False,
			TipoEjecucion: String,
			IDEjecucion: String,
			InfoAdicional: String,
			Orden: 0,
			Items: 
			[
				{
					CodigoMenu: 0,
					CodigoPadre: 0,
					Nombre: String,
					Descripcion: String,
					TienePermiso: False,
					TipoEjecucion: String,
					IDEjecucion: String,
					InfoAdicional: String,
					Orden: 0,
					Items: 
					[
						{
							CodigoMenu: 0,
							CodigoPadre: 0,
							Nombre: String,
							Descripcion: String,
							TienePermiso: False,
							TipoEjecucion: String,
							IDEjecucion: String,
							InfoAdicional: String,
							Orden: 0,
							Icono: String
						}
					],
					Icono: String
				}
			],
			Icono: String
		}
	]
}