All Verbs | /utilidades/executeDBFunction |
---|
namespace Administrador.Modelo.Tipos
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type GeneralRS() =
///<summary>
///Id del código de respuesta 1: Correcto, -1: Error
///</summary>
[<ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")>]
member val Codigo:Int32 = new Int32() with get,set
///<summary>
///Mensaje que se envía al ejecutar el servicio
///</summary>
[<ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")>]
member val Mensaje:String = null with get,set
[<AllowNullLiteral>]
type ExecuteDBFunctionRS() =
inherit GeneralRS()
member val Respuesta:Object = null with get,set
member val IDEjecucion:Decimal = new Decimal() with get,set
member val URLArchivo:String = null with get,set
member val TipoRespuesta:String = null with get,set
member val Background:Boolean = new Boolean() with get,set
member val TiempoRespuestaBD:Int64 = new Int64() with get,set
member val TiempoRespuestaTotal:Int64 = new Int64() with get,set
///<summary>
///Id del código de respuesta 1: Correcto, -1: Error
///</summary>
[<ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")>]
member val Codigo:Int32 = new Int32() with get,set
///<summary>
///Mensaje que se envía al ejecutar el servicio
///</summary>
[<ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")>]
member val Mensaje:String = null with get,set
[<AllowNullLiteral>]
type ExecuteDBFunctionRQ() =
member val NombreServicio:String = null with get,set
member val Parametros:Dictionary<String, Object> = new Dictionary<String, Object>() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /utilidades/executeDBFunction HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"NombreServicio":"String","Parametros":{"String":{}}}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Respuesta":{},"IDEjecucion":0,"URLArchivo":"String","TipoRespuesta":"String","Background":false,"TiempoRespuestaBD":0,"TiempoRespuestaTotal":0,"Codigo":0,"Mensaje":"String"}