Skip to content

save projects using API #64

@enriquezrene

Description

@enriquezrene

The app has a UI to manage projects but it does not have any interaction with the API so we need to add the required code to actually save projects.

Acceptance Criteria

  • ProjectService needs to make the proper request to the API
  • Make sure the projects list is reloaded to show the list with the new projects added
  • All the added code needs to have at least 80% code coverage
  • File 'assets/project.json' needs to be removed since projects are going to be read using the API
  • The following CURL command allows saving a project
curl -X POST "http://timetracker-api.azurewebsites.net/projects" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"name\": \"Time Tracker Xyz\", \"description\": \"Track working time for employees\", \"type\": \"CUSTOMER\"}"
  • The following CURL command can be used to list all the existing projects
curl -X GET "http://timetracker-api.azurewebsites.net/projects" -H "accept: application/json"

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