All Verbs | /utilidades/executeDBFunction |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Administrador.Modelo.Tipos
Namespace Global
Namespace Administrador.Modelo.Tipos
Public Partial Class ExecuteDBFunctionRQ
Public Sub New()
Parametros = New Dictionary(Of String, Object)
End Sub
Public Overridable Property NombreServicio As String
Public Overridable Property Parametros As Dictionary(Of String, Object)
End Class
Public Partial Class ExecuteDBFunctionRS
Inherits GeneralRS
Public Overridable Property Respuesta As Object
Public Overridable Property IDEjecucion As Decimal
Public Overridable Property URLArchivo As String
Public Overridable Property TipoRespuesta As String
Public Overridable Property Background As Boolean
Public Overridable Property TiempoRespuestaBD As Long
Public Overridable Property TiempoRespuestaTotal As Long
'''<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")>
Public Overridable Property Codigo As Integer
'''<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")>
Public Overridable Property Mensaje As String
End Class
Public Partial Class 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")>
Public Overridable Property Codigo As Integer
'''<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")>
Public Overridable Property Mensaje As String
End Class
End Namespace
End Namespace
VB.NET ExecuteDBFunctionRQ DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
Content-Type: text/jsv
Content-Length: length
{
NombreServicio: String,
Parametros:
{
String: {}
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Respuesta: {}, IDEjecucion: 0, URLArchivo: String, TipoRespuesta: String, Background: False, TiempoRespuestaBD: 0, TiempoRespuestaTotal: 0, Codigo: 0, Mensaje: String }