namespace EndianUpdaterLicenser
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type ERAS2ClientNotification() =
member val noteID:Int64 = new Int64() with get,set
member val infotext:String = null with get,set
member val valid_from:DateTime = new DateTime() with get,set
member val valid_to:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val valid_version:String = null with get,set
member val license:String = null with get,set
[<AllowNullLiteral>]
type ERAS2ClientNotificationResponse() =
member val notifications:ResizeArray<ERAS2ClientNotification> = new ResizeArray<ERAS2ClientNotification>() with get,set
[<AllowNullLiteral>]
type ERAS2ClientNotificationRequest() =
member val eras2_version:String = null with get,set
member val eras2_license:String = null with get,set
member val CallingOS:String = null with get,set
member val CallingOSArchitecture:String = null with get,set
member val LocalIP:String = null with get,set
member val CallingHost:String = null with get,set
member val CallingUser:String = null with get,set
member val CallingDomain:String = null with get,set
F# ERAS2ClientNotificationRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/ERAS2ClientNotificationRequest HTTP/1.1
Host: 52.142.207.43
Accept: application/json
Content-Type: application/json
Content-Length: length
{"eras2_version":"String","eras2_license":"String","CallingOS":"String","CallingOSArchitecture":"String","LocalIP":"String","CallingHost":"String","CallingUser":"String","CallingDomain":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"notifications":[{"noteID":0,"infotext":"String","valid_from":"\/Date(-62135596800000-0000)\/","valid_to":"\/Date(-62135596800000-0000)\/","valid_version":"String","license":"String"}]}