| PUT | /tabelle/comuni/ | ||
|---|---|---|---|
| PUT,GET | /tabelle/comuni/{Id} | ||
| PUT,GET | /tabelle/comuni/codiceexport/{CodiceExport} |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class Comune
{
public String CodiceExport = null;
public Integer Id = null;
public String Denominazione = null;
public String CAP = null;
public String Provincia = null;
public FK_Zona Zona = null;
public Boolean IsEsclusoDaListe = null;
public String CodiceISTAT = null;
public OptionalNullableDouble DurezzaTotaleAcqua = null;
public OptionalNullableInteger TipoRCEE = null;
public String getCodiceExport() { return CodiceExport; }
public Comune setCodiceExport(String value) { this.CodiceExport = value; return this; }
public Integer getId() { return Id; }
public Comune setId(Integer value) { this.Id = value; return this; }
public String getDenominazione() { return Denominazione; }
public Comune setDenominazione(String value) { this.Denominazione = value; return this; }
public String getCap() { return CAP; }
public Comune setCap(String value) { this.CAP = value; return this; }
public String getProvincia() { return Provincia; }
public Comune setProvincia(String value) { this.Provincia = value; return this; }
public FK_Zona getZona() { return Zona; }
public Comune setZona(FK_Zona value) { this.Zona = value; return this; }
public Boolean getIsEsclusoDaListe() { return IsEsclusoDaListe; }
public Comune setIsEsclusoDaListe(Boolean value) { this.IsEsclusoDaListe = value; return this; }
public String getCodiceISTAT() { return CodiceISTAT; }
public Comune setCodiceISTAT(String value) { this.CodiceISTAT = value; return this; }
public OptionalNullableDouble getDurezzaTotaleAcqua() { return DurezzaTotaleAcqua; }
public Comune setDurezzaTotaleAcqua(OptionalNullableDouble value) { this.DurezzaTotaleAcqua = value; return this; }
public OptionalNullableInteger getTipoRCEE() { return TipoRCEE; }
public Comune setTipoRCEE(OptionalNullableInteger value) { this.TipoRCEE = value; return this; }
}
public static class FK_Zona extends FK implements IUniqueSigla, IUniqueDescrizione
{
public String Sigla = null;
public String Descrizione = null;
public String getSigla() { return Sigla; }
public FK_Zona setSigla(String value) { this.Sigla = value; return this; }
public String getDescrizione() { return Descrizione; }
public FK_Zona setDescrizione(String value) { this.Descrizione = value; return this; }
}
public static class FK
{
public Integer Id = null;
public Integer getId() { return Id; }
public FK setId(Integer value) { this.Id = value; return this; }
}
public static class OptionalNullableDouble extends Optional<Double>
{
}
public static class Optional<T>
{
public String Value = null;
public String getValue() { return Value; }
public Optional<T> setValue(String value) { this.Value = value; return this; }
}
public static class OptionalNullableInteger extends Optional<Integer>
{
}
}
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 /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}}