Go-to-Light Service 4.0.0.2397 - 121 - API License to Cloud Demo

<back to all web services

ShowPredictive

Requires Authentication
The following routes are available for this service:
All Verbs/ShowPredictive/{BlinkKey}/{SteadyKey}/{Color}/{ShowHeader}/{Owner}
namespace GoToLightAPI

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

    type HeaderMode =
        | on = 0
        | off = 1
        | once = 2

    [<AllowNullLiteral>]
    type ShowPredictive() = 
        ///<summary>
        ///Key identifying a location that will be shown blinking
        ///</summary>
        [<ApiMember(Description="Key identifying a location that will be shown blinking", IsRequired=true)>]
        member val BlinkKey:String = null with get,set

        ///<summary>
        ///Key identifying a location that will be shown not blinking
        ///</summary>
        [<ApiMember(Description="Key identifying a location that will be shown not blinking", IsRequired=true)>]
        member val SteadyKey:String = null with get,set

        ///<summary>
        ///HTML Color code (e.g. FF00FF)
        ///</summary>
        [<ApiMember(Description="HTML Color code (e.g. FF00FF)", IsRequired=true)>]
        member val Color:String = null with get,set

        ///<summary>
        ///Indicates the way the area header will be displayed (possible values are on, off, once)
        ///</summary>
        [<ApiMember(Description="Indicates the way the area header will be displayed (possible values are on, off, once)", IsRequired=true)>]
        member val ShowHeader:HeaderMode = new HeaderMode() with get,set

        ///<summary>
        ///Name of the owner of the color/command to allow color sharing
        ///</summary>
        [<ApiMember(Description="Name of the owner of the color/command to allow color sharing", IsRequired=true)>]
        member val Owner:String = null with get,set

        ///<summary>
        ///Optional: name of the stockroom where to show the position
        ///</summary>
        [<ApiMember(Description="Optional: name of the stockroom where to show the position")>]
        member val StockroomName:String = null with get,set

F# ShowPredictive 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.

POST /ShowPredictive/{BlinkKey}/{SteadyKey}/{Color}/{ShowHeader}/{Owner} HTTP/1.1 
Host: clouddemo.pickeos.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"BlinkKey":"String","SteadyKey":"String","Color":"String","ShowHeader":"on","Owner":"String","StockroomName":"String"}