-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(listUsersFunctionality): enable an authenticated user to view th…
…e list and profiles of existing authors - add a view class to display all authors - add profile as part of the fields in the user serializer - add a path to the urls - render the data [Finishes #164069231]
- Loading branch information
1 parent
978b926
commit 3b6c305
Showing
7 changed files
with
88 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,4 +19,3 @@ | |
"bio": "everything tech", | ||
"image": "https://localhost:8000/people.png" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
from django.urls import path | ||
from .views import (ProfileRetrieveAPIView, | ||
ListAuthorsAPIView, ProfileUpdateAPIView) | ||
ListAuthorsAPIView, ProfileUpdateAPIView, AuthorsAPIView) | ||
|
||
urlpatterns = [ | ||
path('profiles/<username>', ProfileRetrieveAPIView.as_view(), name="get_profile"), | ||
path('profiles/<username>/edit', | ||
ProfileUpdateAPIView.as_view(), name="update_profile"), | ||
path('profiles/', ListAuthorsAPIView.as_view(), name="users_profiles"), | ||
path('authorslist/', AuthorsAPIView.as_view(), name="authors_list"), | ||
|
||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters