| GET, POST | /contabilita/bilancio/dal/{DataDa}/al/{DataA} |
|---|
namespace Unico3.Link.API.Messages
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type FK() =
member val Id:Nullable<Int32> = new Nullable<Int32>() with get,set
[<AllowNullLiteral>]
type FK_Conto() =
inherit FK()
member val Codice:String = null with get,set
member val CodiceExport:String = null with get,set
[<AllowNullLiteral>]
type ContoConExtra() =
inherit FK_Conto()
member val IsEconomico:Boolean = new Boolean() with get,set
member val IsPatrimoniale:Boolean = new Boolean() with get,set
member val CodiceMastro:String = null with get,set
member val CodiceConto:String = null with get,set
member val Descrizione:String = null with get,set
[<AllowNullLiteral>]
type RigaBilancio() =
member val Conto:ContoConExtra = null with get,set
member val AttivitaRicavo:Nullable<Double> = new Nullable<Double>() with get,set
member val PassivitaCosto:Nullable<Double> = new Nullable<Double>() with get,set
member val Saldo:Nullable<Double> = new Nullable<Double>() with get,set
[<AllowNullLiteral>]
type BilancioResponse() =
member val Elementi:ResizeArray<RigaBilancio> = new ResizeArray<RigaBilancio>() with get,set
[<AllowNullLiteral>]
type FK_CAT() =
inherit FK()
member val Codice:String = null with get,set
[<AllowNullLiteral>]
type ElaboraBilancio() =
[<Required>]
member val DataA:DateTime = new DateTime() with get,set
[<Required>]
member val DataDa:DateTime = new DateTime() with get,set
member val Sezione:Nullable<Int32> = new Nullable<Int32>() with get,set
member val CAT:FK_CAT = null with get,set
member val EscludiExtracontabili:Boolean = new Boolean() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /contabilita/bilancio/dal/{DataDa}/al/{DataA} HTTP/1.1
Host: unico3.link.api
Accept: application/json
Content-Type: application/json
Content-Length: length
{"DataA":"0001-01-01T00:00:00.0000000","DataDa":"0001-01-01T00:00:00.0000000","Sezione":0,"CAT":{"Codice":"String","Id":0},"EscludiExtracontabili":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Elementi":[{"Conto":{"IsEconomico":false,"IsPatrimoniale":false,"CodiceMastro":"String","CodiceConto":"String","Descrizione":"String","Codice":"String","CodiceExport":"String","Id":0},"AttivitaRicavo":0,"PassivitaCosto":0,"Saldo":0}]}