gamonoid / icehrm

Manage your employees easily with a robust and efficient Human Resource Management System
http://icehrm.com
Other
579 stars 373 forks source link

API Feature request #228

Open pantherale0 opened 3 years ago

pantherale0 commented 3 years ago

I've installed IceHRM however I've noticed that when looking for custom fields of an employee I've created, they do not show up when requesting a full list of employees via http:///app/api/employees.

Custom fields do show correctly with their correct names when requesting a specific employee.

In this example, I've created a custom field called "HR Defined Role". When sending a request to the API for all employees, amongst the data I get the following output: "custom1": null, "custom2": null, "custom3": null, "custom4": null, "custom5": null, "custom6": null, "custom7": null, "custom8": null, "custom9": null, "custom10": null,

When running a request for a specific employee, I don't get the output seen above, and instead get the correct attribute.

Is there anything planned to allow custom fields to be displayed when sending a request to the API for all users? Or is this a bug?