kimai / Paid-plugins

Support for paid Kimai plugins: Discussions and feature requests
https://www.kimai.org/store/
11 stars 1 forks source link

add meta-fields to post request #40

Open j0hannesr0th opened 4 years ago

j0hannesr0th commented 4 years ago

At the moment meta-fields have to be patched one by one after creating a timesheet entry via the api.

I'd be better if the meta-fields could be send with the timesheet creation post request.

Json example:

{
   "begin":"2020-07-02T11:07:27",
   "end":"2020-07-02T11:07:27",
   "duration":"string",
   "project":0,
   "activity":0,
   "description":"string",
   "tags":"string",
   "fixedRate":0,
   "hourlyRate":0,
   "description":null,
   "metaFields":[
      {
         "name":"key1",
         "value":"value1"
      },
      {
         "name":"key2",
         "value":"value2"
      },
      {
         "name":"key3",
         "value":"value3"
      }
   ]
}
pkoevesdi commented 1 month ago

I'd like to second that request, I find it unnecessarily complicated to set the meta fields afterwards.