josev814 / csc490_team2

Apache License 2.0
1 stars 0 forks source link

updating the rules to support creation #116

Closed josev814 closed 7 months ago

josev814 commented 7 months ago

IMPORTANT - When testing with Postman, you will need to use the auth endpoint to get an access token. Then save that token to the Rules Collection in Postman before making requests to rules endpoints.

image image

updating rules so we can create a rule allowing the ability to list all rules for a user with pagination support adding docstrings adding custom pagination class to align with our Response format setting access token token to 30 minutes instead of 1 minute removing unneeded values under simple_jwt adding the rules to the admin portal of django starting to add search functionality removing init from the serializer since it seems to not be needed included user into the fields for the serializer reformatted the urls for the rules complete rewrite of the rules views to make creating, listing and viewing rules possible

had to fix the user model's str to do a json dump to properly return data