At Code Your Future, trainee progress is tracked on a trainee tracker against milestones set by the Director of Education. But each trainee at CYF is on their own personal journey towards employment, and should really set their own milestones on their own roadmap.
MIT License
2
stars
1
forks
source link
[US-3] Create endpoint to return current milestone #56
For an authenticated user (trainee) we can identify their cohort and based on this association and current date find their current milestone. Please, create a new endpoint that does this logic.
Acceptance criteria
Endpoint returns 401 error if user is not authenticated.
Endpoint returns 422 error if user's role is not trainee. Other roles don't have their cohort and therefore milestones.
Endpoint returns milestone's name, start and end dates.
For an authenticated user (trainee) we can identify their
cohort
and based on this association and current date find their current milestone. Please, create a new endpoint that does this logic.Acceptance criteria
trainee
. Other roles don't have their cohort and therefore milestones.