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

Development: Get User profile #63

Closed
ramitsawhney27 opened this issue Jun 21, 2020 · 3 comments
Closed

Development: Get User profile #63

ramitsawhney27 opened this issue Jun 21, 2020 · 3 comments
Assignees
Labels
Category: Coding Changes to code base or refactored code that doesn't fix a bug. Program: GSOC Related to work completed during the Google Summer of Code Program. Type: Enhancement New feature or request.

Comments

@ramitsawhney27
Copy link

Is your feature request related to a problem? Please describe.
I need to have the ability to retrieve a profile on BIT. For this, the API on the backend should be available.

Describe the solution you'd like
Create an API for user profile retrieval for the BIT backend. The API would take user id or information as input and return the profile information with the appropriate respnse.. Majorly, 2 outcomes are possible: Successful (200 OK), or Unsuccessful (40x) (x represents one of the error codes like 400, 403, etc.), Not found (404), 500 (internal server error)

The response should be a LIST, which will return all users if no filtering condition is provided, and a subset of users (even 1) as a list if a condition is supplied.

The GET request should take a parameter (for ex: user id, or username) that will be used to decide which users should be returned.

@ramitsawhney27 ramitsawhney27 added Category: Coding Changes to code base or refactored code that doesn't fix a bug. Program: GSOC Related to work completed during the Google Summer of Code Program. Type: Enhancement New feature or request. labels Jun 21, 2020
@ramitsawhney27
Copy link
Author

@mtreacy002 - Please feel free to subdivide and break this issue into 3 issues (if you would like) for the following endpoints as per https://docs.google.com/document/d/1uCDCWs8Xyo-3EaUnrLOs48mefXJIN235b1aAswA-s-Y/edit#heading=h.qmolxjuwxlum
GET /users
GET /user
GET /users/{user_id}

@meenakshi-dhanani
Copy link

I'm cleaning up Zenhub a bit. I see a PR merged with respect to /user/personal_details. So can I move this story to done? and close this?

@mtreacy002
Copy link
Member

Fixed with #76, #78, #82, #84

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Coding Changes to code base or refactored code that doesn't fix a bug. Program: GSOC Related to work completed during the Google Summer of Code Program. Type: Enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

3 participants