All Verbs | /restfiles/InsertReportRQ |
---|
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 InsertReportRQ
Public Overridable Property usua_login As String
Public Overridable Property carp_carp As Decimal
Public Overridable Property rept_rept As Decimal
Public Overridable Property rept_nombre As String
Public Overridable Property rept_tipo As Integer
Public Overridable Property rept_fecmodi As Date
Public Overridable Property rept_fecelimi As Date
Public Overridable Property rept_version As String
Public Overridable Property rept_tamano As Integer
Public Overridable Property blob_blob As Decimal
Public Overridable Property vist_vist As Decimal
End Class
Public Partial Class InsertReportRS
Public Overridable Property isInsertado As Boolean
Public Overridable Property [Error] As String
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /restfiles/InsertReportRQ HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"usua_login":"String","carp_carp":0,"rept_rept":0,"rept_nombre":"String","rept_tipo":0,"rept_fecmodi":null,"rept_fecelimi":null,"rept_version":"String","rept_tamano":0,"blob_blob":0,"vist_vist":0}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"isInsertado":false,"Error":"String"}