Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Matthew Frost
    @mattronix
    from this document i dont understand if it has the api or not out of the box: https://www.kimai.org/documentation/rest-api.html
    Matthew Frost
    @mattronix
    found it
    /api/doc
    ignore my silly question!
    Kevin Papst
    @kevinpapst
    You are not the first person to ask...I wonder how I could make that more obvious.
    Matthew Frost
    @mattronix
    i think if you put https://kimai.example.com/api/docs for example
    that might help thats what i am mostly scanning for
    im also always scanning for a section that says authentication and says use bearer auth or oauth2 etc
    @kevinpapst is there a way i can get an API Response that contains the full user email and not the user ID?
    @kevinpapst if i use the begin and or end parameter on the timesheets api and use 2020-10-01 for example it gives me a bad request, what am i doing wrong :P
    thought that was html 5 format
    Matthew Frost
    @mattronix
    found an example under the project method: 2020-10-15T07:51:12.470Z
    Matthew Frost
    @mattronix
    odd still get bad parameters
    on projects also
    found it 2020-10-15T09:10:41
    Matthew Frost
    @mattronix
    dont get any records back as admin user if i just set start and end time
    do i need to be in the teams also?
    Kevin Papst
    @kevinpapst
    no
    start with no parameters and then work your way up to find out, which parameter causes the list to be empty
    Matthew Frost
    @mattronix
    ah
    ok :)
    even blank gives nothingh
    only on my none admin user it returns data
    Kevin Papst
    @kevinpapst
    Lets change roles for a second and pretend you are me: when reading your posts, would you understand what you are trying to achieve and what you need help with? Because I don't. What is blank? What is "it" (that returns data)? You are talking about users, timesheet, projects, dates, blank parameters ... The easiest way is to post an example here, querying the Kimai demo and then we can have a look what is wrong(going on.
    Matthew Frost
    @mattronix
    sure :)
    we GET from the /api/timesheets endpoint
    with only two parameters
    start and end
    they are set to the first day of the last month and the last day of the last month
    when i run the API query i get data back showing me a timesheet
    but i dont get all the records i should
    so for example i get 1 record back when i have 5 records in my time tracking and 20 in the general time tracking of all team members
    headers are set to content type json and the xauth headers needed
    Matthew Frost
    @mattronix
    ok its my account apprently i get different results if i use a system admin account
    vs my normal user account
    normal = teamlead
    Matthew Frost
    @mattronix
    @kevinpapst seems to be ok if i use my other user so nothing to worry about for now
    is there anyway i can ask the API to resolve these values for me: 'activity': 3, 'project': 10, 'user': 4,
    so i dont have to do any look ups ?
    Kevin Papst
    @kevinpapst
    There is a pagination bug in timesheets when working with with team permissions (which is already in work). You get around that with either using an admin account or setting the "view_all_data" permission to the teamlead role.
    The other question is documented in the /timesheets endpoint - check the parameter "full"
    be aware that it might change with the next version: kevinpapst/kimai2#1984
    Matthew Frost
    @mattronix
    ah i see
    thanks
    so far i only see my own records via the API i think
    but i am a "system administrator"
    do i need to be "administrator"
    Matthew Frost
    @mattronix
    think i found a small bug
    if you make a user called api
    you cant browse to the edit page of the user