mtierltd / timetracker

GNU Affero General Public License v3.0
82 stars 28 forks source link

REST API #4

Open tarpin opened 5 years ago

tarpin commented 5 years ago

Could you please add REST API.

reinerj commented 5 years ago

Could you tell us know more for what it would be needed?

tarpin commented 5 years ago

Thanks for Your quick reply.

I'm thinking about making addon for browser inspired by Toggl Button addon. Addon would be integrated with Time Tracker (as backend).

Planned functions of the addon:

Initially, addon would need possibility to:

adnoh commented 5 years ago

Can we just add @NoCSRFRequired on several route like the start-timer for example? Would work great as a rest api. Background - I plan a small app for my employees to track their time from mobile and just exposing these ajax routes would help a lot - or is there a way to access them via rest if the don't have the @NoCSRFRequired comment? @reinerj

reinerj commented 5 years ago

we will review this and will look for the best way how this can be implemented. There are more reuest like this to have other options to add hours to the application

puthre commented 5 years ago

@adnoh I think you'll need separate routes for API so you can start, stop and add timers for different users as just disabling CSRF is a hack that would require your app to login as the user into the nextcloud app.

reinerj commented 4 years ago

We would accept pull requests. When you would send this we would review and integrate it.

Thanks

simonspa commented 4 years ago

An API would also be useful to allow using external apps to register check-in/check-out times. It could even be connected to a card reader which would allow to check in times simply by swiping an RFID card.

c33s commented 4 years ago

yes, an api would help to create tracker apps

jazn commented 3 years ago

I'm making standalone device for selecting project that I'm working on. With REST API I could integrate it with timetracker.