Skip to content

Create new time-entries #146

@enriquezrene

Description

@enriquezrene

As a user, I want to create a new time-entry as soon as I select a project from the list in order to save a track of my work.

The flow is the following:

  • A user clicks on Time clock option
  • The user finds the project they are working on
  • The user clicks on the project

After following the above-described steps, a new time entry needs to be created executing the following CURL command:

curl -X POST "http://timetracker-api.azurewebsites.net/time-entries" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"project_id\": \"390d9d3a-ed2e-4d9a-bb28-2e633c1fbbb9\", \"start_date\": \"2020-04-17T00:50:37.201229\"}"

where project_id needs to be the selected project by the user and start_date represent the current timestamp in UTC using this format ISO 8601.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions