GET : Select2 - Pegawai Jabatan dan Unit

api/1.0/select2/pegawai/jabatanunit?subyek={subyek}

Request Information
URI Parameters
NameDescriptionTypeAdditional information
otk

ID / IDs OTK

Collection of integer

None.

jabatan

ID / IDs Jabatan

Collection of integer

None.

jabatanjenis

ID / IDs Jenis Jabatan

Collection of integer

None.

jabatanunit

ID / IDs Jabatan dan Unit

Collection of integer

None.

unit

ID / IDs Unit

Collection of integer

None.

subyek

integer

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>