POST api/GlobalGetData/globalgetdata

Request Information

URI Parameters

None.

Body Parameters

GlobalGetDataReceivedDataModels
NameDescriptionTypeAdditional information
location_id

integer

None.

code

string

None.

handphone

string

None.

Request Formats

application/json, text/json

Sample:
{
  "location_id": 1,
  "code": "sample string 2",
  "handphone": "sample string 3"
}

application/xml, text/xml

Sample:
<GlobalGetDataReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.GlobalGetDataIntegrator.ReceivedDataModels">
  <code>sample string 2</code>
  <handphone>sample string 3</handphone>
  <location_id>1</location_id>
</GlobalGetDataReceivedDataModels>

multipart/form-data

Sample:
<GlobalGetDataReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.GlobalGetDataIntegrator.ReceivedDataModels"><code>sample string 2</code><handphone>sample string 3</handphone><location_id>1</location_id></GlobalGetDataReceivedDataModels>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GlobalGetDataBaseTreeModels
NameDescriptionTypeAdditional information
message

string

None.

success

boolean

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "success": true,
  "data": {}
}

application/xml, text/xml

Sample:
<GlobalGetDataBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.GlobalGetDataIntegrator.BaseTreeModels">
  <data />
  <message>sample string 1</message>
  <success>true</success>
</GlobalGetDataBaseTreeModels>

multipart/form-data

Sample:
<GlobalGetDataBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.GlobalGetDataIntegrator.BaseTreeModels"><data /><message>sample string 1</message><success>true</success></GlobalGetDataBaseTreeModels>