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

[Backend] Implement the profile update API #204

Closed
ege-kaya opened this issue Nov 27, 2021 · 2 comments
Closed

[Backend] Implement the profile update API #204

ege-kaya opened this issue Nov 27, 2021 · 2 comments

Comments

@ege-kaya
Copy link
Collaborator

We need to implement the backend API allowing a user to update their own profile. We should first write the API documentation to the wiki page before starting the implementation, so that others can review it and the other subteams can start their implementations without needing the backend to be complete.

@ege-kaya
Copy link
Collaborator Author

I have improved the profile view controller to inherit the Django Rest Framework's RetrieveAPIView class, resulting in a better and cleaner implementation. I have also implemented the profile update view, but as of right now it does not check whether the request for the update comes from the correct user. I will now look into the user identification and authorization using the JWT token architecture we set up.

@ege-kaya
Copy link
Collaborator Author

ege-kaya commented Nov 30, 2021

I have implemented the user identification and permission-checking part of the profile update API as well. I have pushed my work to the improved-users-profiles branch, will now open a pull request and assign a reviewer. Also, I will promptly add the relevant API documentation to the Wiki page.

ege-kaya added a commit that referenced this issue Dec 2, 2021
Improved user registration, update and view profile APIs (resolves #204)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant