POST api/GuideLine/getGuidelines
Request Information
URI Parameters
None.
Body Parameters
GuidelineReceivedDataModels| Name | Description | Type | Additional information |
|---|---|---|---|
| vendor_id | string |
None. |
|
| handphone | string |
None. |
|
| mobile_token | string |
None. |
|
| location_id | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"vendor_id": "sample string 1",
"handphone": "sample string 2",
"mobile_token": "sample string 3",
"location_id": 4
}
application/xml, text/xml
Sample:
<GuidelineReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.GuidelineIntegrator.ReceivedDataModels"> <handphone>sample string 2</handphone> <location_id>4</location_id> <mobile_token>sample string 3</mobile_token> <vendor_id>sample string 1</vendor_id> </GuidelineReceivedDataModels>
multipart/form-data
Sample:
<GuidelineReceivedDataModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.GuidelineIntegrator.ReceivedDataModels"><handphone>sample string 2</handphone><location_id>4</location_id><mobile_token>sample string 3</mobile_token><vendor_id>sample string 1</vendor_id></GuidelineReceivedDataModels>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GuidelineBaseTreeModels| Name | Description | Type | Additional information |
|---|---|---|---|
| message | string |
None. |
|
| success | boolean |
None. |
|
| data | Collection of GuidelineSentDataModels |
None. |
Response Formats
application/json, text/json
Sample:
{
"message": "sample string 1",
"success": true,
"data": [
{
"vendor_id": "sample string 1",
"handphone": "sample string 2",
"mobile_token": "sample string 3",
"id": 4,
"location_id": 5,
"text": "sample string 6"
},
{
"vendor_id": "sample string 1",
"handphone": "sample string 2",
"mobile_token": "sample string 3",
"id": 4,
"location_id": 5,
"text": "sample string 6"
}
]
}
application/xml, text/xml
Sample:
<GuidelineBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.GuidelineIntegrator.BaseTreeModels">
<data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.GuidelineIntegrator.SentDataModels">
<d2p1:GuidelineSentDataModels>
<d2p1:handphone>sample string 2</d2p1:handphone>
<d2p1:id>4</d2p1:id>
<d2p1:location_id>5</d2p1:location_id>
<d2p1:mobile_token>sample string 3</d2p1:mobile_token>
<d2p1:text>sample string 6</d2p1:text>
<d2p1:vendor_id>sample string 1</d2p1:vendor_id>
</d2p1:GuidelineSentDataModels>
<d2p1:GuidelineSentDataModels>
<d2p1:handphone>sample string 2</d2p1:handphone>
<d2p1:id>4</d2p1:id>
<d2p1:location_id>5</d2p1:location_id>
<d2p1:mobile_token>sample string 3</d2p1:mobile_token>
<d2p1:text>sample string 6</d2p1:text>
<d2p1:vendor_id>sample string 1</d2p1:vendor_id>
</d2p1:GuidelineSentDataModels>
</data>
<message>sample string 1</message>
<success>true</success>
</GuidelineBaseTreeModels>
multipart/form-data
Sample:
<GuidelineBaseTreeModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.GuidelineIntegrator.BaseTreeModels"><data xmlns:d2p1="http://schemas.datacontract.org/2004/07/FarmerPublicAPI.Models.GuidelineIntegrator.SentDataModels"><d2p1:GuidelineSentDataModels><d2p1:handphone>sample string 2</d2p1:handphone><d2p1:id>4</d2p1:id><d2p1:location_id>5</d2p1:location_id><d2p1:mobile_token>sample string 3</d2p1:mobile_token><d2p1:text>sample string 6</d2p1:text><d2p1:vendor_id>sample string 1</d2p1:vendor_id></d2p1:GuidelineSentDataModels><d2p1:GuidelineSentDataModels><d2p1:handphone>sample string 2</d2p1:handphone><d2p1:id>4</d2p1:id><d2p1:location_id>5</d2p1:location_id><d2p1:mobile_token>sample string 3</d2p1:mobile_token><d2p1:text>sample string 6</d2p1:text><d2p1:vendor_id>sample string 1</d2p1:vendor_id></d2p1:GuidelineSentDataModels></data><message>sample string 1</message><success>true</success></GuidelineBaseTreeModels>