Skip to content

Deduplicate API endpoints which specify a user in their route#1030

Merged
Toastbrot236 merged 9 commits into
LittleBigRefresh:mainfrom
Toastbrot236:user-api-dedupe
Feb 20, 2026
Merged

Deduplicate API endpoints which specify a user in their route#1030
Toastbrot236 merged 9 commits into
LittleBigRefresh:mainfrom
Toastbrot236:user-api-dedupe

Conversation

@Toastbrot236

@Toastbrot236 Toastbrot236 commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Deduplicates such API endpoints by not having 2 whole endpoint methods per endpoint (one for users specified by username, one for users specified by UUID) by using the new GetUserByIdAndType database method to allow multi-key lookups in a single endpoint method per endpoint.

TODO: Although I've manually tested some of these endpoints, unit tests would be good for this. These will be many new tests though, but I've already finished a few of them.

EDIT: The tests I've just added cover most but not all modified endpoints, but I think these should be enough already.

@Toastbrot236 Toastbrot236 merged commit 4aec38b into LittleBigRefresh:main Feb 20, 2026
3 checks passed
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 this pull request may close these issues.

1 participant