POST api/PostLiveStockDetails
Request Information
URI Parameters
None.
Body Parameters
LiveStock_ResultName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
Matching regular expression pattern: ([0-9]+) |
|
farm_Id | integer |
Matching regular expression pattern: ([0-9]+) |
|
UserId | integer |
Matching regular expression pattern: ([0-9]+) |
|
LivestockId | integer |
Matching regular expression pattern: ([0-9]+) |
|
Age | integer |
Matching regular expression pattern: ([0-9]+) |
|
NumberOfLivestock | integer |
Matching regular expression pattern: ([0-9]+) |
|
Species | string |
Matching regular expression pattern: ^[a-zA-Z ]{2,}$ |
|
Animal | string |
Matching regular expression pattern: ^[a-zA-Z ]{2,}$ |
|
Breed | string |
Matching regular expression pattern: ^[a-zA-Z ]{2,}$ |
|
EditedFarmId | integer |
Matching regular expression pattern: ([0-9]+) |
Request Formats
application/json, text/json
Sample:
{ "ID": 1, "farm_Id": 2, "UserId": 3, "LivestockId": 4, "Age": 1, "NumberOfLivestock": 5, "Species": "sample string 6", "Animal": "sample string 7", "Breed": "sample string 8", "EditedFarmId": 9 }
application/xml, text/xml
Sample:
<LiveStock_Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models"> <Age>1</Age> <Animal>sample string 7</Animal> <Breed>sample string 8</Breed> <EditedFarmId>9</EditedFarmId> <ID>1</ID> <LivestockId>4</LivestockId> <NumberOfLivestock>5</NumberOfLivestock> <Species>sample string 6</Species> <UserId>3</UserId> <farm_Id>2</farm_Id> </LiveStock_Result>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.