Trendsic Platform Service

<back to all web services

LinesRequest

Requires Authentication
Required roles:Administrator, Administrator, Administrator
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/Lines/{Id}
GET,POST,PUT,DELETE,OPTIONS/v1/LinesByLocationId/{LocationId}
GET,POST,PUT,DELETE,OPTIONS/v1/Lines
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class LinesRequest
{
    open var Id:UUID? = null
    open var LocationId:UUID? = null
    open var Lines:ArrayList<Line> = ArrayList<Line>()
}

open class Line
{
    open var Id:UUID? = null
    open var LocationId:UUID? = null
    open var LocationName:String? = null
    open var Name:String? = null
    open var Description:String? = null
    open var ServiceDurationMinutes:Int? = null
    open var WaitTime:Int? = null
    open var Cost:BigDecimal? = null
    open var UpperThreshold:Int? = null
    open var LowerThreshold:Int? = null
    open var Active:Boolean? = null
    open var EntDate:Date? = null
    open var ModDate:Date? = null
    open var SendQuestionnaire:Boolean? = null
    open var RequireUpload:Boolean? = null
    open var UploadMessage:String? = null
    open var LineImages:ArrayList<LineImage> = ArrayList<LineImage>()
}

open class LineImage
{
    open var ImageId:UUID? = null
    open var FileName:String? = null
    open var ImageTitle:String? = null
    open var UploadDate:Date? = null
}

open class LinesResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var Lines:ArrayList<Line> = ArrayList<Line>()
}

Kotlin LinesRequest 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 /v1/Lines/{Id} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Id":"00000000000000000000000000000000","LocationId":"00000000000000000000000000000000","Lines":[{"Id":"00000000000000000000000000000000","LocationId":"00000000000000000000000000000000","LocationName":"String","Name":"String","Description":"String","ServiceDurationMinutes":0,"WaitTime":0,"Cost":0,"UpperThreshold":0,"LowerThreshold":0,"Active":false,"EntDate":"0001-01-01T00:00:00.0000000","ModDate":"0001-01-01T00:00:00.0000000","SendQuestionnaire":false,"RequireUpload":false,"UploadMessage":"String","LineImages":[{"ImageId":"00000000000000000000000000000000","FileName":"String","ImageTitle":"String","UploadDate":"0001-01-01T00:00:00.0000000"}]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Lines":[{"Id":"00000000000000000000000000000000","LocationId":"00000000000000000000000000000000","LocationName":"String","Name":"String","Description":"String","ServiceDurationMinutes":0,"WaitTime":0,"Cost":0,"UpperThreshold":0,"LowerThreshold":0,"Active":false,"EntDate":"0001-01-01T00:00:00.0000000","ModDate":"0001-01-01T00:00:00.0000000","SendQuestionnaire":false,"RequireUpload":false,"UploadMessage":"String","LineImages":[{"ImageId":"00000000000000000000000000000000","FileName":"String","ImageTitle":"String","UploadDate":"0001-01-01T00:00:00.0000000"}]}]}