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

#60 [FIX]: Refactoring of User, Address, Institution and Classroom endpoints #61

Conversation

IosBonaldi
Copy link
Contributor

Added refactorings

  • Authentication on User, Address, Institution and Classroom endpoints;
  • Added errorFormatter on endpoints that didn't use it;
  • Organized the fields that each endpoint must return, adding relevant fields and removing sensitive/dispensable ones;
  • Added authorization checks (some require team validation);
  • Branch diverted from all branches with pending pull requests before it.

Authorizations added

  • Only admins perform CRUD operations in Address;
  • Only admins create institutions and only institution coordinators (and admins) can handle them;
  • Coordinators can only be created by admins. Publishers and applicators can only be created by coordinators and admins. Users can only be created by publishers, coordinators and admins;
  • Classrooms can only be created and handled by admins or coordinators of the institution and viewed by admins and other members of the institution (excluding users);

…sted-protocols' of https://github.com/VRI-UFPR/PICCE-API into 58-fix-refactoring-of-application-endpoints-with-more-relevant-responses
…applicationanswer' of https://github.com/VRI-UFPR/PICCE-API into 58-fix-refactoring-of-application-endpoints-with-more-relevant-responses
…s://github.com/VRI-UFPR/PICCE-API into 58-fix-refactoring-of-application-endpoints-with-more-relevant-responses
…efactored responses in institution endpoints
…efactored responses in classroom endpoints
@IosBonaldi IosBonaldi self-assigned this Mar 1, 2024
@IosBonaldi IosBonaldi requested a review from en-22 May 2, 2024 02:43
@IosBonaldi IosBonaldi merged commit 762016e into main May 2, 2024
@IosBonaldi IosBonaldi deleted the 60-fix-refactoring-of-user-address-institution-and-classroom-endpoints branch May 2, 2024 13:24
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.

[FIX]: Refactoring of user, address, institution and classroom endpoints
2 participants