| PUT,GET | /magazzino/articoli/listini |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Unico3.Link.API.Messages.Magazzino
Imports Unico3.Link.API.Messages
Namespace Global
Namespace Unico3.Link.API.Messages
Public Partial Class FK
Public Overridable Property Id As Nullable(Of Integer)
End Class
End Namespace
Namespace Unico3.Link.API.Messages.Magazzino
Public Partial Class FK_Articolo
Inherits FK
Implements IUniqueCodice
Public Overridable Property Codice As String
End Class
Public Partial Class FK_Listino
Inherits FK
Implements IUniqueCodice
Implements IUniqueDescrizione
Public Overridable Property Codice As String
Public Overridable Property Descrizione As String
End Class
Public Partial Class VoceListino
Public Overridable Property Listino As FK_Listino
Public Overridable Property Articolo As FK_Articolo
Public Overridable Property CodiceOrdine As String
Public Overridable Property Barcode As String
Public Overridable Property PrezzoAcquisto As Nullable(Of Double)
Public Overridable Property PrezzoVendita As Nullable(Of Double)
End Class
End Namespace
End Namespace
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}