Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New endpoint to return existing goals #139

Open
crysfel opened this issue Mar 31, 2020 · 0 comments
Open

New endpoint to return existing goals #139

crysfel opened this issue Mar 31, 2020 · 0 comments
Assignees

Comments

@crysfel
Copy link
Member

crysfel commented Mar 31, 2020

We want to speed up the process of applying for mentorships by pulling the current goals from the mentee and populate the form application.

We need a new endpoint that returns the current goals for the given user, if there are no goals defined we are going to set a few common goals to pre-fill the application.

Request:

GET /users/${user.id}/goals

Response:

{
  data: { 
    goals: [
        { id: number, description: string } 
    ],
    expectation: string,
    background: string 
  } 
}

AC

  • Model the data for goals in mongo
  • Read the current data from the database
  • If there are no goals we need to send default goals (static for now)
  • Return the data
@crysfel crysfel self-assigned this Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant