FrameAppWS

<back to all web services

ArbolPermisosFormasRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Usuarios/Permisos/Forma
namespace Administrador.Modelo.Tipos

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type PermisosItems() = 
        member val CodigoMenu:Decimal = new Decimal() with get,set
        member val CodigoPadre:Decimal = new Decimal() with get,set
        member val Nombre:String = null with get,set
        member val Descripcion:String = null with get,set
        member val TienePermiso:Boolean = new Boolean() with get,set
        member val TipoEjecucion:String = null with get,set
        member val IDEjecucion:String = null with get,set
        member val InfoAdicional:String = null with get,set
        member val Orden:Int32 = new Int32() with get,set
        member val Items:ResizeArray<PermisosItems> = new ResizeArray<PermisosItems>() with get,set
        member val Icono:String = null with get,set

    [<AllowNullLiteral>]
    type PermisosFormas() = 
        member val CodForma:Int32 = new Int32() with get,set
        member val Nombre:String = null with get,set
        member val Descripcion:String = null with get,set
        member val Items:ResizeArray<PermisosItems> = new ResizeArray<PermisosItems>() with get,set

    type Lenguajes =
        | ES = 0
        | PT = 1
        | EN = 2

    [<AllowNullLiteral>]
    type ArbolPermisosFormasRQ() = 
        member val Usuario:String = null with get,set
        member val CodSistema:Int32 = new Int32() with get,set
        member val CodEmpresa:Int32 = new Int32() with get,set
        member val CodModulo:Int32 = new Int32() with get,set
        member val CodForma:Int32 = new Int32() with get,set
        member val Lenguaje:Lenguajes = new Lenguajes() with get,set

F# 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
		}
	]
}