-
Notifications
You must be signed in to change notification settings - Fork 335
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
feat: /user/profile endpoint #458
Conversation
6537898
to
e7deb44
Compare
|
||
User preferences. | ||
|
||
```json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```json | |
Example response: | |
```json |
return {'user': self.request.user} | ||
|
||
@action(methods=['get'], detail=False) | ||
def profile(self, request): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a basic test to test_bookmarks_api.py
Maybe set some profile properties to non-default values, get profile, verify values are correct.
def get_serializer_context(self): | ||
return {'user': self.request.user} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not necessary.
Closing in favor of #541 |
Issue: #457