| All Verbs | /AddBox |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class AddBox:
# @ApiMember(Description="Name of the box", IsRequired=true)
name: Optional[str] = None
"""
Name of the box
"""
# @ApiMember(Description="Size X of the box in cm", IsRequired=true)
size_xcm: float = 0.0
"""
Size X of the box in cm
"""
# @ApiMember(Description="Size Y of the box in cm", IsRequired=true)
size_ycm: float = 0.0
"""
Size Y of the box in cm
"""
# @ApiMember(Description="Size Z of the box in cm", IsRequired=true)
size_zcm: float = 0.0
"""
Size Z of the box in cm
"""
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
}