Education

Pada halaman Employee Education ini Anda dapat menggunakan metode :
1. POST
2. GET


1. POST
  • Add new Educations of Employee

Tujuan : Untuk menambahkan pendidikan baru yang dicapai Karyawan

Method : POST
API Endpoint : [[baseurl]]/api/integration/v1/employee/educations

HEADER

X-TenantID: [[tenantid]]
Authorization: Bearer [[accesstoken]]

πŸ“Catatan Untuk mengetahui [[baseurl]], dan [[tenantid]], Anda dapat mempelajarinya pada halaman Integration Credential. Dan untuk [[accesstoken]] dapat dipelajari pada halaman Authorization Token.

BODY PAYLOAD (JSON)

{
  "employeeNo": "0921092",
  "major": "Sistem Informasi",
  "degree": "S1",
  "school": "Univeristas AMIKOM Yogyakarta",
  "city": "",
  "yearJoined": 0,
  "yearGraduated": 2018,
  "gpa": null,
  "active": true
}

CONSUME VIA CURL

curl --location --request POST '[[baseurl]]/api/integration/v1/employee/educations' 
--header 'X-TenantID: [[tenantid]]' 
--header 'Authorization: Bearer [[accesstoken]]' 
--header 'Content-Type: application/json' 
--data-raw '{
 "employeeNo": "0921092",
 "major": "Sistem Informasi",
 "degree": "S1",
 "school": "Univeristas AMIKOM Yogyakarta",
 "city": "",
 "yearJoined": 0,
 "yearGraduated": 2018,
 "gpa": null,
 "active": true
 }'

API Response :

{
  "message": "Create Data Successfully",
  "error": false
}

2. GET
  • Get detail Employee Educations with employeeNo parameter

Tujuan : Untuk mendapatkan detail pendidikan yang dicapai Karyawan dengan parameter employeeNo

Method : GET
API Endpoint : [[baseurl]]/api/integration/v1/employee/educations?active=[[value]]&employeeNo=[[employeenumber]]

πŸ“Catatan Parameter [[value]] diisi dengan “true” jika data karyawan tersebut aktif atau “false” jika data karyawan tersebut tidak aktif. Dan parameter [[employeenumber]] diisi dengan nomor karyawan yang diinginkan.

HEADER

X-TenantID: [[tenantid]]
Authorization: Bearer [[accesstoken]]
CONSUME VIA CURL

curl --location --request GET '[[baseurl]]/api/integration/v1/employee/educations?active=[[value]]&employeeNo=[[employeenumber]]' 
--header 'X-TenantID: [[tenantid]]' 
--header 'Authorization: Bearer [[accesstoken]]'

πŸ“Catatan Untuk mengetahui [[baseurl]], dan [[tenantid]], Anda dapat mempelajarinya pada halaman Integration Credential. Dan untuk [[accesstoken]] dapat dipelajari pada halaman Authorization Token.

API Response :

[
  {
    "employeeId": "eba2b46b-929c-11eb-97ce-0adbcc9eaaa8",
    "employeeNo": "1219003",
    "details": [
      {
        "id": "e02fe94d-1b9b-48be-ae3c-440567bc22a6",
        "major": "NEW MG 30",
        "degree": "D3",
        "school": "bina nusantata",
        "city": "jakartaaa",
        "yearJoined": 2006,
        "yearGraduated": 2016,
        "gpa": 4,
        "active": false
      },
      {
        "id": "33c1eda4-5a8a-48f9-9837-d45ca6ff5077",
        "major": "update data major",
        "degree": "S1",
        "school": "Untar",
        "city": "Jakarta",
        "yearJoined": 1970,
        "yearGraduated": 1974,
        "gpa": 3.64,
        "active": true
      }
    ]
  }
]