| PUT | /assistenza/impianti/riferimenti | ||
|---|---|---|---|
| PUT,GET | /assistenza/impianti/riferimenti/id/{Id} | ||
| PUT,GET | /assistenza/impianti/riferimenti/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_Impianto() =
inherit FK()
member val Codice:Nullable<Int32> = new Nullable<Int32>() with get,set
member val CodiceExport:String = null with get,set
[<AllowNullLiteral>]
type FK_Anagrafica() =
inherit FK()
member val Codice:Nullable<Int32> = new Nullable<Int32>() with get,set
member val CodiceExport:String = null with get,set
type RuoloRiferimentoImpianto =
| Cliente = 1
| Amministratore = 3
| Installatore = 4
| Proprietario = 5
| TerzoResponsabile = 6
| Progettista = 7
| Referente = 10
| Occupante = 11
| Conduttore = 13
[<AllowNullLiteral>]
type OptionalNullableDateTime() =
inherit Optional<DateTime>()
[<AllowNullLiteral>]
type RiferimentoImpianto() =
member val Id:Nullable<Int32> = new Nullable<Int32>() with get,set
member val CodiceExport:String = null with get,set
member val Impianto:FK_Impianto = null with get,set
member val Anagrafica:FK_Anagrafica = null with get,set
member val Ruolo:Nullable<RuoloRiferimentoImpianto> = new Nullable<RuoloRiferimentoImpianto>() with get,set
member val Note:String = null with get,set
member val DataInizioIncarico:OptionalNullableDateTime = null with get,set
[<AllowNullLiteral>]
type Optional<'T>() =
member val Value:String = null with get,set
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 /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"}}