| PUT,GET | /magazzino/articoli/listini |
|---|
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_Listino() =
inherit FK()
member val Codice:String = null with get,set
member val Descrizione:String = null with get,set
[<AllowNullLiteral>]
type FK_Articolo() =
inherit FK()
member val Codice:String = null with get,set
[<AllowNullLiteral>]
type VoceListino() =
member val Listino:FK_Listino = null with get,set
member val Articolo:FK_Articolo = null with get,set
member val CodiceOrdine:String = null with get,set
member val Barcode:String = null with get,set
member val PrezzoAcquisto:Nullable<Double> = new Nullable<Double>() with get,set
member val PrezzoVendita:Nullable<Double> = new Nullable<Double>() 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.
PUT /magazzino/articoli/listini HTTP/1.1
Host: unico3.link.api
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Listino":{"Codice":"String","Descrizione":"String","Id":0},"Articolo":{"Codice":"String","Id":0},"CodiceOrdine":"String","Barcode":"String","PrezzoAcquisto":0,"PrezzoVendita":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Listino":{"Codice":"String","Descrizione":"String","Id":0},"Articolo":{"Codice":"String","Id":0},"CodiceOrdine":"String","Barcode":"String","PrezzoAcquisto":0,"PrezzoVendita":0}