| All Verbs | /AddBox |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports GoToLightAPI
Namespace Global
Namespace GoToLightAPI
Public Partial Class AddBox
'''<Summary>
'''Name of the box
'''</Summary>
<ApiMember(Description:="Name of the box", IsRequired:=true)>
Public Overridable Property Name As String
'''<Summary>
'''Size X of the box in cm
'''</Summary>
<ApiMember(Description:="Size X of the box in cm", IsRequired:=true)>
Public Overridable Property SizeXcm As Double
'''<Summary>
'''Size Y of the box in cm
'''</Summary>
<ApiMember(Description:="Size Y of the box in cm", IsRequired:=true)>
Public Overridable Property SizeYcm As Double
'''<Summary>
'''Size Z of the box in cm
'''</Summary>
<ApiMember(Description:="Size Z of the box in cm", IsRequired:=true)>
Public Overridable Property SizeZcm As Double
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /AddBox HTTP/1.1
Host: clouddemo.pickeos.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Name: String,
SizeXcm: 0,
SizeYcm: 0,
SizeZcm: 0
}