| All Verbs | /SaveArea/{Area} |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class SaveArea
{
/**
* Area
*/
@ApiMember(Description="Area", IsRequired=true)
open var Area:Area? = null
}
open class Area
{
open var AreaID:Int? = null
open var Label:String? = null
open var StockroomID:Long? = null
open var Content:ArrayList<AreaContent> = ArrayList<AreaContent>()
open var NumberOfPixels:Int? = null
}
open class AreaContent
{
open var ID:Int? = null
open var LCAddress:String? = null
open var PixelStart:Int? = null
open var PixelStop:Int? = null
open var AreaID:Int? = null
open var Pos:Int? = null
open var Reverse:Boolean? = null
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml
Content-Type: application/xml
Content-Length: length
<SaveArea xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GoToLightAPI">
<Area>
<AreaID>0</AreaID>
<Content>
<AreaContent>
<AreaID>0</AreaID>
<ID>0</ID>
<LCAddress>String</LCAddress>
<PixelStart>0</PixelStart>
<PixelStop>0</PixelStop>
<Pos>0</Pos>
<Reverse>false</Reverse>
</AreaContent>
</Content>
<Label>String</Label>
<StockroomID>0</StockroomID>
</Area>
</SaveArea>