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

Issue 59 v2:Filter Posts By Role #74

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from
Open

Issue 59 v2:Filter Posts By Role #74

wants to merge 11 commits into from

Conversation

lamalul
Copy link

@lamalul lamalul commented Aug 29, 2022

The View PostByRole provides a retrieve View for the filtered posts by role.

Fixes #59

Hans-Lambda and others added 11 commits August 23, 2022 16:21
for institution added; need improvement
…tViewSet

To check if it works open the links:
 http://localhost:8000/posts/?posts_by=students
 http://localhost:8000/posts/?posts_by=teachers
 http://localhost:8000/posts/?posts_by=institutions
…trieveAPI view as view

- after meging the branch from pull request#71 an separat view th only a get method PostByRol has been added and the url pattern for it has been added
- The <str:role> is the argument of the url pattern and can be replaced by students, teachers, or intitutions repectivly.
to check it add ?posts_by=students (or teachers, or intitutions) after the posts/ url
http://127.0.0.1:8000/posts/?posts_by=students
…etrieveAPI view as view

- after merging the branch from pull request#71 a separate view with only a get method to class the PostByRole has been added and the url pattern for it has been added
- The <str:role> is the argument of the url pattern and can be replaced by students, teachers, or institutions respectively.
@lamalul lamalul changed the base branch from main to develop August 29, 2022 11:54
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

Successfully merging this pull request may close these issues.

As a user I want to be able to filter posts by role.
2 participants