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}
import java.math.*
import java.util.*
import net.servicestack.client.*


open class Comune
{
    var CodiceExport:String? = null
    var Id:Int? = null
    var Denominazione:String? = null
    var CAP:String? = null
    var Provincia:String? = null
    var Zona:FK_Zona? = null
    var IsEsclusoDaListe:Boolean? = null
    var CodiceISTAT:String? = null
    var DurezzaTotaleAcqua:OptionalNullableDouble? = null
    var TipoRCEE:OptionalNullableInteger? = null
}

open class FK_Zona : FK(), IUniqueSigla, IUniqueDescrizione
{
    var Sigla:String? = null
    var Descrizione:String? = null
}

open class FK
{
    var Id:Int? = null
}

open class OptionalNullableDouble : Optional<Double>()
{
}

open class Optional<T>
{
    var Value:String? = null
}

open class OptionalNullableInteger : Optional<Int>()
{
}

Kotlin 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}}