POST api/Indent/GetSubCommodities
Request Information
URI Parameters
None.
Body Parameters
CommodityDtlsName | Description | Type | Additional information |
---|---|---|---|
commodityid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "commodityid": 1 }
application/xml, text/xml
Sample:
<CommodityDtls xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TSWDCW.Models"> <commodityid>1</commodityid> </CommodityDtls>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
SubCommoditiesMenuDataName | Description | Type | Additional information |
---|---|---|---|
status | string |
None. |
|
message | string |
None. |
|
subcommoditiesmenudata | Collection of SubCommodities |
None. |
Response Formats
application/json, text/json
Sample:
{ "status": "sample string 1", "subcommoditiesmenudata": [ { "subcommname": "sample string 1", "units": "sample string 2", "subcommid": 3, "value": 4 }, { "subcommname": "sample string 1", "units": "sample string 2", "subcommid": 3, "value": 4 } ], "message": "sample string 2" }
application/xml, text/xml
Sample:
<SubCommoditiesMenuData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TSWDCW.Models"> <status>sample string 1</status> <subcommoditiesmenudata> <SubCommodities> <subcommname>sample string 1</subcommname> <units>sample string 2</units> <subcommid>3</subcommid> <value>4</value> </SubCommodities> <SubCommodities> <subcommname>sample string 1</subcommname> <units>sample string 2</units> <subcommid>3</subcommid> <value>4</value> </SubCommodities> </subcommoditiesmenudata> <message>sample string 2</message> </SubCommoditiesMenuData>