POST api/Service2/GetVillage
Request Information
URI Parameters
None.
Body Parameters
VillageInputName | Description | Type | Additional information |
---|---|---|---|
iPhone | integer |
None. |
|
TownId | string |
None. |
|
sUname | string |
None. |
|
sPwd | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "iPhone": 1, "TownId": "sample string 2", "sUname": "sample string 3", "sPwd": "sample string 4" }
text/html
Sample:
{"iPhone":1,"TownId":"sample string 2","sUname":"sample string 3","sPwd":"sample string 4"}
application/xml, text/xml
Sample:
<VillageInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/selfcare.Models"> <sPwd>sample string 4</sPwd> <sUname>sample string 3</sUname> <TownId>sample string 2</TownId> <iPhone>1</iPhone> </VillageInput>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
VillageModelName | Description | Type | Additional information |
---|---|---|---|
Vill | Collection of Village |
None. |
|
resultCode | integer |
None. |
|
resultDesc | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Vill": [ { "VILLAGE_NAME": "sample string 1", "VILLAGE_ID": 2 }, { "VILLAGE_NAME": "sample string 1", "VILLAGE_ID": 2 } ], "resultCode": 1, "resultDesc": "sample string 2" }
text/html
Sample:
{"Vill":[{"VILLAGE_NAME":"sample string 1","VILLAGE_ID":2},{"VILLAGE_NAME":"sample string 1","VILLAGE_ID":2}],"resultCode":1,"resultDesc":"sample string 2"}
application/xml, text/xml
Sample:
<VillageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/selfcare.Models"> <resultCode>1</resultCode> <resultDesc>sample string 2</resultDesc> <Vill> <Village> <VILLAGE_NAME>sample string 1</VILLAGE_NAME> <VILLAGE_ID>2</VILLAGE_ID> </Village> <Village> <VILLAGE_NAME>sample string 1</VILLAGE_NAME> <VILLAGE_ID>2</VILLAGE_ID> </Village> </Vill> </VillageModel>