| PUT | /assistenza/impianti | ||
|---|---|---|---|
| PUT,GET | /assistenza/impianti/id/{Id} | ||
| PUT,GET | /assistenza/impianti/codice/{Codice} | ||
| PUT,GET | /assistenza/impianti/codiceexport/{CodiceExport} |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Unico3.Link.API.Messages.Assistenza
Imports Unico3.Link.API.Messages.Anagrafiche
Imports Unico3.Link.API.Messages
Imports Unico3.Link.API.Messages.Documenti
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.Anagrafiche
Public Partial Class FK_Comune
Inherits FK
Public Overridable Property CAP As String
Public Overridable Property Denominazione As String
Public Overridable Property Provincia As String
Public Overridable Property CodiceISTAT As String
End Class
Public Enum TipoTelefono
Fisso
Fax
Cellulare
SMS
End Enum
End Namespace
Namespace Unico3.Link.API.Messages.Assistenza
Public Partial Class FK_Combustibile
Inherits FK
Implements IUniqueDescrizione
Implements IUniqueCodiceExport
Public Overridable Property CodiceExport As String
Public Overridable Property Descrizione As String
End Class
Public Partial Class FK_TipologiaImpianto
Inherits FK
Implements IUniqueDescrizione
Implements IUniqueCodiceExport
Public Overridable Property CodiceExport As String
Public Overridable Property Descrizione As String
End Class
Public Partial Class FK_Zona
Inherits FK
Implements IUniqueSigla
Implements IUniqueDescrizione
Public Overridable Property Sigla As String
Public Overridable Property Descrizione As String
End Class
Public Partial Class Impianto
Public Overridable Property Id As Nullable(Of Integer)
Public Overridable Property Codice As Nullable(Of Integer)
Public Overridable Property CodiceExport As String
Public Overridable Property Nominativo As String
Public Overridable Property TipoTelefono1 As Nullable(Of TipoTelefono)
Public Overridable Property TipoTelefono2 As Nullable(Of TipoTelefono)
Public Overridable Property TipoTelefono3 As Nullable(Of TipoTelefono)
Public Overridable Property Telefono1 As String
Public Overridable Property Telefono2 As String
Public Overridable Property Telefono3 As String
Public Overridable Property Indirizzo As String
Public Overridable Property NumeroCivico As String
Public Overridable Property Comune As FK_Comune
Public Overridable Property Zona As FK_Zona
Public Overridable Property Palazzo As String
Public Overridable Property Scala As String
Public Overridable Property Piano As String
Public Overridable Property Interno As String
Public Overridable Property Citofono As String
Public Overridable Property Gruppo As String
Public Overridable Property Suffisso As String
Public Overridable Property Tipologia As FK_TipologiaImpianto
Public Overridable Property CAT As FK_CAT
Public Overridable Property Combustibile As FK_Combustibile
End Class
End Namespace
Namespace Unico3.Link.API.Messages.Documenti
Public Partial Class FK_CAT
Inherits FK
Implements IUniqueCodice
Public Overridable Property Codice As String
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 /assistenza/impianti HTTP/1.1
Host: unico3.link.api
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Id":0,"Codice":0,"CodiceExport":"String","Nominativo":"String","TipoTelefono1":"Fisso","TipoTelefono2":"Fisso","TipoTelefono3":"Fisso","Telefono1":"String","Telefono2":"String","Telefono3":"String","Indirizzo":"String","NumeroCivico":"String","Comune":{"CAP":"String","Denominazione":"String","Provincia":"String","CodiceISTAT":"String","Id":0},"Zona":{"Sigla":"String","Descrizione":"String","Id":0},"Palazzo":"String","Scala":"String","Piano":"String","Interno":"String","Citofono":"String","Gruppo":"String","Suffisso":"String","Tipologia":{"CodiceExport":"String","Descrizione":"String","Id":0},"CAT":{"Codice":"String","Id":0},"Combustibile":{"CodiceExport":"String","Descrizione":"String","Id":0}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Id":0,"Codice":0,"CodiceExport":"String","Nominativo":"String","TipoTelefono1":"Fisso","TipoTelefono2":"Fisso","TipoTelefono3":"Fisso","Telefono1":"String","Telefono2":"String","Telefono3":"String","Indirizzo":"String","NumeroCivico":"String","Comune":{"CAP":"String","Denominazione":"String","Provincia":"String","CodiceISTAT":"String","Id":0},"Zona":{"Sigla":"String","Descrizione":"String","Id":0},"Palazzo":"String","Scala":"String","Piano":"String","Interno":"String","Citofono":"String","Gruppo":"String","Suffisso":"String","Tipologia":{"CodiceExport":"String","Descrizione":"String","Id":0},"CAT":{"Codice":"String","Id":0},"Combustibile":{"CodiceExport":"String","Descrizione":"String","Id":0}}