FrameAppWS

<back to all web services

ArbolPermisosPpalRQ

Requires Authentication
The following routes are available for this service:
All Verbs/Usuarios/Permisos/MenuPrincipal
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 PermisosModulos() = 
        member val CodModulo:Decimal = new Decimal() with get,set
        member val Nombre:String = null with get,set
        member val SuperUsuario:Boolean = new Boolean() with get,set
        member val Orden:Int32 = new Int32() with get,set
        member val MenuPrincipal:ResizeArray<PermisosItems> = new ResizeArray<PermisosItems>() with get,set

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

    [<AllowNullLiteral>]
    type ArbolPermisosPpalRS() = 
        member val CodSistema:Int32 = new Int32() with get,set
        member val CodEmpresa:Int32 = new Int32() with get,set
        member val Modulos:ResizeArray<PermisosModulos> = new ResizeArray<PermisosModulos>() with get,set
        member val Lenguaje:Lenguajes = new Lenguajes() with get,set

    [<AllowNullLiteral>]
    type ArbolPermisosPpalRQ() = 
        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 Lenguaje:Lenguajes = new Lenguajes() with get,set

F# ArbolPermisosPpalRQ 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/MenuPrincipal HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

{
	CodSistema: 0,
	CodEmpresa: 0,
	Modulos: 
	[
		{
			CodModulo: 0,
			Nombre: String,
			SuperUsuario: False,
			Orden: 0,
			MenuPrincipal: 
			[
				{
					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
				}
			]
		}
	],
	Lenguaje: ES
}