An simpel example of ( https://clockify.me/ ) REST-based API
you can (Add,Get all or Get a specific,Update,Delete) data by this api cod
parameter | more | type |
---|---|---|
description | Optional | string |
billable | True or Fals , Optional , default=Fals | Boolean |
start_at | like : 2022-01-23 14:29:00 | date time |
end_at | Should be less than #start_at | date time |
pk | necessary | integer |
to add new time tracker to data base
{"description": "Writing documentation",
"billable": "True",
"start_at": "2022-01-22 15:29",
"end_at": "2021-01-23 14:29"}
return an dictionary of all time entry
find and return specific time entry from data base with id = pk
stop running timer with id = pk
Delete time entry with id = pk
Update time entry with id = pk
{"description": "Writing documentation",
"billable": "True",
"start_at": "2022-01-22 15:29",
"end_at": "2021-01-23 14:29"}
Requires Python 3 to run.
open CMD , go to your dir and type
git clone https://github.com/farhadfarokhseresht/Time-Traker-api.git
#after Download go to proj directory and type in your CMD :
python manage.py runserver
#use Postman app