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

Adds endpoint for fetching valid enum choices #486

Merged
merged 10 commits into from
Nov 14, 2024
Merged

Adds endpoint for fetching valid enum choices #486

merged 10 commits into from
Nov 14, 2024

Conversation

djperrefort
Copy link
Member

Closes #484 by adding the following map of endpoints to enumerated choices.

Endpoint Enum
/users/team-membership/role-choices/ apps.users.models.TeamMembership.Role
/allocations/allocation-request/status-choices/ apps.allocations.models.AllocationRequest.StatusChoices
/allocation-review/status-choices/ apps.allocations.models.AllocationRequestReview.StatusChoices

I've also renamed the AllocationRequestReview model to AllocationReview to help keep the class names from getting too long. A view class named AllocationRequestReviewStatusChoicesView just started seeming a bit ridiculous.

@djperrefort
Copy link
Member Author

@wdougwhye Can you take a quick peak at the updated openapi spec and let me know if this fits your needs. Opinions on the endpoint paths are also welcome.

Copy link

@wdougwhye wdougwhye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spec looks good for the enums and thumbs up on the name shortening.

@djperrefort djperrefort enabled auto-merge (squash) November 13, 2024 22:32
@djperrefort djperrefort merged commit 85a549b into main Nov 14, 2024
17 checks passed
@djperrefort djperrefort deleted the choices branch November 14, 2024 05:33
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.

Add endpoint for ENUM options
2 participants