Skip to content

Add optional recorded sorting to measurements endpoint#135

Open
vnbl wants to merge 1 commit intotchx84:masterfrom
vnbl:measurements-sort-option
Open

Add optional recorded sorting to measurements endpoint#135
vnbl wants to merge 1 commit intotchx84:masterfrom
vnbl:measurements-sort-option

Conversation

@vnbl
Copy link
Copy Markdown

@vnbl vnbl commented Mar 22, 2026

This PR adds an optional sort query parameter to GET /api/v1/measurements to allow clients to order results by recorded in ascending (sort=recorded) or descending (sort=-recorded) order, while preserving the existing default ordering when the parameter is omitted.

It also adds focused test coverage to verify both sort directions using the existing measurements fixture.

@vnbl vnbl requested a review from tchx84 as a code owner March 22, 2026 19:22
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.

1 participant