RealDevSquad / RealDevSquad/website-backend
[RFC]Role filter in users API
@anishpawaskar is already working on this.
Since Sep 7, 2023.
- Dominant language
- JavaScript
- Stars
- 74
- Forks
- 276
- Avg merge
- 1d 26m
- Merged PRs (30d)
- 14
Description
Why we are making this change?
- We are planning to deprecate the
/membersAPI because naming convention is not right and it is returning the wrong data it should return members but it’s returning all the users as well as members.
What is change?
-
We are planning to migrate to
/usersAPI instead of using/members. -
So we will be fetching users and members based on query.
-
/users/?role=member&include=trueto get the members. -
/users/?role=member&include=falseto get the users (not member). -
we can also filter out multiple roles to get the data of members.
-
/users/?role=member&role=designer&include=truethis will give us the users who have member or designer role true. -
/users/?role=member&role=designer&include=falsethis will give us the users whos member or maven role is false or they don't have member or designer role .
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.