Add New Employee

(Optional)

Employee Directory

No Name Position Join Date Release Date Exp. (Yrs) Salary Action
Loading data...

API Endpoints (Postman)

Anda dapat menguji API CRUD ini secara langsung menggunakan Postman.

GET: Ambil Semua Data Karyawan

URL    : {{base_url}}/api/employees
Method : GET

GET: Ambil Data 1 Karyawan (Misal ID: 1)

URL    : {{base_url}}/api/employees/1
Method : GET

POST: Tambah Karyawan Baru

URL    : {{base_url}}/api/employees
Method : POST
Body   : raw (JSON)
{
  "name": "Budi",
  "position": "Backend",
  "join_date": "2024-01-01",
  "release_date": null,
  "years_of_experience": 2,
  "salary": 5000000
}

DELETE: Hapus Data Karyawan (Misal ID: 1)

URL    : {{base_url}}/api/employees/1
Method : DELETE