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

Create endpoint to get all Users #68

Open
frattezi opened this issue Sep 13, 2023 · 3 comments
Open

Create endpoint to get all Users #68

frattezi opened this issue Sep 13, 2023 · 3 comments
Assignees
Labels
Milestone

Comments

@frattezi
Copy link

frattezi commented Sep 13, 2023

We need to create a new file in the route api/users/route.ts with a GET method that will return all users in the platform.

@frattezi frattezi added this to the Admin milestone Sep 13, 2023
@marco-souza
Copy link
Contributor

We've some DAOs in use that might help with this task.

@frattezi frattezi changed the title Create endpoint to get all users Create endpoint to get all Users Sep 13, 2023
@Luana-ns Luana-ns linked a pull request Oct 18, 2023 that will close this issue
@frattezi frattezi modified the milestone: Admin Nov 22, 2023
@frattezi
Copy link
Author

Try to close until 31th

@frattezi
Copy link
Author

frattezi commented Jan 24, 2024

Query that we should translate to prisma

select u.name, u.email, u.role from users as u
where u.name ILIKE {search} AND u.email ILIKE {search}
order by {columnName} asc

Figma with MVP design for users page, where this endpoint will be used:

https://www.figma.com/file/hSsgFXwHXF8QQjCHsNIijs/PodEstudar?type=design&node-id=706-417&mode=design

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants