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}
namespace Unico3.Core.DomainModel.Infrastructure

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type FK() = 
        member val Id:Nullable<Int32> = new Nullable<Int32>() with get,set

    [<AllowNullLiteral>]
    type FK_Zona() = 
        inherit FK()
        member val Sigla:String = null with get,set
        member val Descrizione:String = null with get,set

    [<AllowNullLiteral>]
    type OptionalNullableDouble() = 
        inherit Optional<Double>()

    [<AllowNullLiteral>]
    type OptionalNullableInteger() = 
        inherit Optional<Int32>()

    [<AllowNullLiteral>]
    type Comune() = 
        member val CodiceExport:String = null with get,set
        member val Id:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val Denominazione:String = null with get,set
        member val CAP:String = null with get,set
        member val Provincia:String = null with get,set
        member val Zona:FK_Zona = null with get,set
        member val IsEsclusoDaListe:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val CodiceISTAT:String = null with get,set
        member val DurezzaTotaleAcqua:OptionalNullableDouble = null with get,set
        member val TipoRCEE:OptionalNullableInteger = null with get,set

    [<AllowNullLiteral>]
    type Optional<'T>() = 
        member val Value:String = null with get,set

F# 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}}