at-gmbh / personio-py

a lightweight Personio API client
https://at-gmbh.github.io/personio-py
Apache License 2.0
26 stars 17 forks source link

Use the new "custom-attributes" API to automatically map custom attributes #23

Open klamann opened 2 years ago

klamann commented 2 years ago

There is a new endpoint in the Personio API

GET /company/employees/custom-attributes

which returns a list of all custom attributes and their data types. This would make the manual definition of DynamicMapping instances obsolete and allow easier access to custom attributes.