| All Verbs | /SaveArea/{Area} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class SaveArea
{
/**
* Area
*/
@ApiMember(Description="Area", IsRequired=true)
public Area Area = null;
public Area getArea() { return Area; }
public SaveArea setArea(Area value) { this.Area = value; return this; }
}
public static class Area
{
public Integer AreaID = null;
public String Label = null;
public Long StockroomID = null;
public ArrayList<AreaContent> Content = new ArrayList<AreaContent>();
public Integer NumberOfPixels = null;
public Integer getAreaID() { return AreaID; }
public Area setAreaID(Integer value) { this.AreaID = value; return this; }
public String getLabel() { return Label; }
public Area setLabel(String value) { this.Label = value; return this; }
public Long getStockroomID() { return StockroomID; }
public Area setStockroomID(Long value) { this.StockroomID = value; return this; }
public ArrayList<AreaContent> getContent() { return Content; }
public Area setContent(ArrayList<AreaContent> value) { this.Content = value; return this; }
public Integer getNumberOfPixels() { return NumberOfPixels; }
public Area setNumberOfPixels(Integer value) { this.NumberOfPixels = value; return this; }
}
public static class AreaContent
{
public Integer ID = null;
public String LCAddress = null;
public Integer PixelStart = null;
public Integer PixelStop = null;
public Integer AreaID = null;
public Integer Pos = null;
public Boolean Reverse = null;
public Integer getId() { return ID; }
public AreaContent setId(Integer value) { this.ID = value; return this; }
public String getLcAddress() { return LCAddress; }
public AreaContent setLcAddress(String value) { this.LCAddress = value; return this; }
public Integer getPixelStart() { return PixelStart; }
public AreaContent setPixelStart(Integer value) { this.PixelStart = value; return this; }
public Integer getPixelStop() { return PixelStop; }
public AreaContent setPixelStop(Integer value) { this.PixelStop = value; return this; }
public Integer getAreaID() { return AreaID; }
public AreaContent setAreaID(Integer value) { this.AreaID = value; return this; }
public Integer getPos() { return Pos; }
public AreaContent setPos(Integer value) { this.Pos = value; return this; }
public Boolean isReverse() { return Reverse; }
public AreaContent setReverse(Boolean value) { this.Reverse = value; return this; }
}
}
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}}