| All Verbs | /SaveArea/{Area} |
|---|
namespace GoToLightAPI
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type AreaContent() =
member val ID:Int32 = new Int32() with get,set
member val LCAddress:String = null with get,set
member val PixelStart:Int32 = new Int32() with get,set
member val PixelStop:Int32 = new Int32() with get,set
member val AreaID:Int32 = new Int32() with get,set
member val Pos:Int32 = new Int32() with get,set
member val Reverse:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type Area() =
member val AreaID:Int32 = new Int32() with get,set
member val Label:String = null with get,set
member val StockroomID:Nullable<Int64> = new Nullable<Int64>() with get,set
member val Content:ResizeArray<AreaContent> = null with get,set
member val NumberOfPixels:Int32 = new Int32() with get,set
[<AllowNullLiteral>]
type SaveArea() =
///<summary>
///Area
///</summary>
[<ApiMember(Description="Area", IsRequired=true)>]
member val Area:Area = 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.
POST /SaveArea/{Area} HTTP/1.1
Host: clouddemo.pickeos.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Area":{"AreaID":0,"Label":"String","StockroomID":0,"Content":[{"ID":0,"LCAddress":"String","PixelStart":0,"PixelStop":0,"AreaID":0,"Pos":0,"Reverse":false}],"NumberOfPixels":1}}