Unico3.Link.API

<back to all web services

Comune

Base
The following routes are available for this service:
PUT/tabelle/comuni/
PUT,GET/tabelle/comuni/{Id}
PUT,GET/tabelle/comuni/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.Base.Tabelle
Imports Unico3.Link.API.Messages.Assistenza
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 OptionalNullableDouble
            Inherits Optional(Of Double)
        End Class

        Public Partial Class OptionalNullableInteger
            Inherits Optional(Of Integer)
        End Class
    End Namespace

    Namespace Unico3.Link.API.Messages.Assistenza

        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
    End Namespace

    Namespace Unico3.Link.API.Messages.Base.Tabelle

        Public Partial Class Comune
            Public Overridable Property CodiceExport As String
            Public Overridable Property Id As Nullable(Of Integer)
            Public Overridable Property Denominazione As String
            Public Overridable Property CAP As String
            Public Overridable Property Provincia As String
            Public Overridable Property Zona As FK_Zona
            Public Overridable Property IsEsclusoDaListe As Nullable(Of Boolean)
            Public Overridable Property CodiceISTAT As String
            Public Overridable Property DurezzaTotaleAcqua As OptionalNullableDouble
            Public Overridable Property TipoRCEE As OptionalNullableInteger
        End Class
    End Namespace
End Namespace

VB.NET Comune 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 /tabelle/comuni/ HTTP/1.1 
Host: unico3.link.api 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"CodiceExport":"String","Id":0,"Denominazione":"String","CAP":"String","Provincia":"String","Zona":{"Sigla":"String","Descrizione":"String","Id":0},"IsEsclusoDaListe":false,"CodiceISTAT":"String","DurezzaTotaleAcqua":{"Value":0},"TipoRCEE":{"Value":0}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"CodiceExport":"String","Id":0,"Denominazione":"String","CAP":"String","Provincia":"String","Zona":{"Sigla":"String","Descrizione":"String","Id":0},"IsEsclusoDaListe":false,"CodiceISTAT":"String","DurezzaTotaleAcqua":{"Value":0},"TipoRCEE":{"Value":0}}