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

API for getting user profile information #18

Closed
4 tasks done
anuveyatsu opened this issue Aug 10, 2017 · 1 comment
Closed
4 tasks done

API for getting user profile information #18

anuveyatsu opened this issue Aug 10, 2017 · 1 comment
Assignees

Comments

@anuveyatsu
Copy link
Member

anuveyatsu commented Aug 10, 2017

In the frontend, we want to show user profile information such as joined_date (maybe some more in the future). To do so we need to query auth db so we need to have API for it: /auth/get_profile?username=core.

Acceptance criteria

  • I can hit /auth/get_profile?username=core and get profile information about the user

Tasks

  • add a blueprint in auth/blueprints.py
  • add get_user_profile_by_username method in controllers
  • reuse get_user_by_username method for querying db
@anuveyatsu anuveyatsu added this to the Sprint - 14 Aug 2017 milestone Aug 10, 2017
@anuveyatsu anuveyatsu self-assigned this Aug 10, 2017
anuveyatsu added a commit that referenced this issue Aug 10, 2017
* [controller][s]: method for getting user profile by username - refs #18

* [bluprint][xs]: a blueprint for `/auth/get_profile?username=...` api - refs #18

* [get-user-profile][xs]: exposing only user id and join date now - refs #18
@anuveyatsu
Copy link
Member Author

FIXED in #19

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