The online timekeeping offers a REST interface for software developers. This REST service is also suitable for connecting time clocks, for example.
The REST API must be activated in the settings of the online time recording system (tab 'Security') and a password must be set.
Please note the following changes when upgrading from version 1.1:
../time-v2.1/..
are accessible in version 2.1 at ../time-v2.1/..
@GET /api/time-v2.1/timecategories has been renamed
to
@GET /api/time-v2.1/timetypes
@POST /api/time-v2.1/createtimeentry has a new,
optional parameter: comment
@POST /api/time-v2.1/timeentries now additionally
returns the property locked, which indicates
whether the time entry has been locked. (Only for time tracking systems where the
"Lockable time entries" feature is enabled.)
A Hello World resource is available at:
A test resource for the login is available at:
Simple demo clients for all available REST API functions:
@GET /api/hello/sayhelloThis resource for testing returns a hello.
noneString@GET /api/hello/securedSayhelloThis resource can be used to test the login. The login must be called beforehand.
noneString@POST /api/loginThis resource can be used for login.
{loginemail, apipassword}JSON web token@GET /api/time-v2.1/timetypesThis resource returns a list of all time types.
none[{id, name}, ...]@GET /api/time-v2.1/usersThis resource returns a list of all users' login emails.
none[{loginemail}, ...]@GET /api/time-v2.1/projectsThis resource returns the list of projects.
none[{id, name}, ...]@GET /api/time-v2.1/projects/{useremail}This resource returns a list of projects for a specific user.
{useremail}[{id, name}, ...]@GET /api/time-v2.1/timeentries?useremail={useremail}&start={start}&end={end}
This resource returns a user's time entries for a certain period of time.
{useremail, start, end}[{id, starttime, ...}, ...]
@POST api/time-v2.1/createtimeentryWith this resource you can create a new time entry.
{starttime, endtime, useremail, timetypeid, projectid, comment}}[{id}, ...]@DELETE /api/time-v2.1/deletetimeentry/{id}
With this resource you can delete a time entry.
{id}None