| All Verbs | /SaveArea/{Area} |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using GoToLightAPI;
namespace GoToLightAPI
{
public partial class Area
{
public virtual int AreaID { get; set; }
public virtual string Label { get; set; }
public virtual long? StockroomID { get; set; }
public virtual List<AreaContent> Content { get; set; } = [];
public virtual int NumberOfPixels { get; set; }
}
public partial class AreaContent
{
public virtual int ID { get; set; }
public virtual string LCAddress { get; set; }
public virtual int PixelStart { get; set; }
public virtual int PixelStop { get; set; }
public virtual int AreaID { get; set; }
public virtual int Pos { get; set; }
public virtual bool Reverse { get; set; }
}
public partial class SaveArea
{
///<summary>
///Area
///</summary>
[ApiMember(Description="Area", IsRequired=true)]
public virtual Area Area { 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}}