GET : Select2 - Daerah Desa

api/1.0/select2/daerah/desa?term={term}&_query={_query}&q={q}&provinsi={provinsi}&kota={kota}&kecamatan={kecamatan}

Request Information
URI Parameters
NameDescriptionTypeAdditional information
term

Kata Kunci

string

None.

_query

string

None.

q

string

None.

provinsi

ID Provinsi

string

None.

kota

ID Kota

string

None.

kecamatan

ID Kecamatan

string

None.


Body Parameters
None.
Response Information
Resource Description
NameDescriptionTypeAdditional information
text

Text option yang ditampilkan

string

None.

value

Value option

string

None.


Response Formats
  • application/json, text/json
    Sample:

    [
      {
        "text": "sample string 1",
        "value": "sample string 2"
      },
      {
        "text": "sample string 1",
        "value": "sample string 2"
      }
    ]
    

  • text/html
    Sample:

    [{"text":"sample string 1","value":"sample string 2"},{"text":"sample string 1","value":"sample string 2"}]
    

  • application/xml, text/xml
    Sample:

    <ArrayOfTextValue_VM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Untidar.Core.Models">
      <TextValue_VM>
        <text>sample string 1</text>
        <value>sample string 2</value>
      </TextValue_VM>
      <TextValue_VM>
        <text>sample string 1</text>
        <value>sample string 2</value>
      </TextValue_VM>
    </ArrayOfTextValue_VM>