Unico3.Link.API

<back to all web services

RiferimentoImpianto

Assistenza
The following routes are available for this service:
PUT/assistenza/impianti/riferimenti
PUT,GET/assistenza/impianti/riferimenti/id/{Id}
PUT,GET/assistenza/impianti/riferimenti/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.Documenti
Imports Unico3.Link.API.Messages
Imports Unico3.Core.DomainModel.Infrastructure

Namespace Global

    Namespace Unico3.Core.DomainModel.Infrastructure

        Public Partial Class Optional(Of T)
            Public Overridable Property Value As String
        End Class
    End Namespace

    Namespace Unico3.Link.API.Messages

        Public Partial Class FK
            Public Overridable Property Id As Nullable(Of Integer)
        End Class

        Public Partial Class OptionalNullableDateTime
            Inherits Optional(Of Date)
        End Class
    End Namespace

    Namespace Unico3.Link.API.Messages.Assistenza

        Public Partial Class RiferimentoImpianto
            Public Overridable Property Id As Nullable(Of Integer)
            Public Overridable Property CodiceExport As String
            Public Overridable Property Impianto As FK_Impianto
            Public Overridable Property Anagrafica As FK_Anagrafica
            Public Overridable Property Ruolo As Nullable(Of RuoloRiferimentoImpianto)
            Public Overridable Property Note As String
            Public Overridable Property DataInizioIncarico As OptionalNullableDateTime
        End Class

        Public Enum RuoloRiferimentoImpianto
            Cliente = 1
            Amministratore = 3
            Installatore = 4
            Proprietario = 5
            TerzoResponsabile = 6
            Progettista = 7
            Referente = 10
            Occupante = 11
            Conduttore = 13
        End Enum
    End Namespace

    Namespace Unico3.Link.API.Messages.Documenti

        Public Partial Class FK_Anagrafica
            Inherits FK
            Implements IUniqueCodiceNumerico
            Implements IUniqueCodiceExport
            Public Overridable Property Codice As Nullable(Of Integer)
            Public Overridable Property CodiceExport As String
        End Class

        Public Partial Class FK_Impianto
            Inherits FK
            Implements IUniqueCodiceNumerico
            Implements IUniqueCodiceExport
            Public Overridable Property Codice As Nullable(Of Integer)
            Public Overridable Property CodiceExport As String
        End Class
    End Namespace
End Namespace

VB.NET RiferimentoImpianto DTOs

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /assistenza/impianti/riferimenti HTTP/1.1 
Host: unico3.link.api 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Id":0,"CodiceExport":"String","Impianto":{"Codice":0,"CodiceExport":"String","Id":0},"Anagrafica":{"Codice":0,"CodiceExport":"String","Id":0},"Ruolo":"0","Note":"String","DataInizioIncarico":{"Value":"0001-01-01T00:00:00.0000000"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":0,"CodiceExport":"String","Impianto":{"Codice":0,"CodiceExport":"String","Id":0},"Anagrafica":{"Codice":0,"CodiceExport":"String","Id":0},"Ruolo":"0","Note":"String","DataInizioIncarico":{"Value":"0001-01-01T00:00:00.0000000"}}