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

Support sorting parameter to diary api #51

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

oluizeduardo
Copy link
Owner

Problem

  • Lack of sorting parameters in the Diary API.

Solution

  • Adjusted the Diary API to support new query parameters: orderBy and sort. This will allow users to specify the sorting field and order for the API responses.

How To Test

  • Send requests to the Diary API using the parameters below:
    • start: initial date (YYYY-MM-DD).
    • end: final date (YYYY-MM-DD).
    • orderBy: the field to be ordered by.
    • sort: the type of sorting (ASC or DESC)

Fixes

@oluizeduardo oluizeduardo added the enhancement New feature or request label Oct 27, 2024
@oluizeduardo oluizeduardo self-assigned this Oct 27, 2024
@oluizeduardo oluizeduardo linked an issue Oct 27, 2024 that may be closed by this pull request
1 task
Copy link

Copy link
Owner Author

@oluizeduardo oluizeduardo left a comment

Choose a reason for hiding this comment

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

Code reviewed!

@oluizeduardo oluizeduardo merged commit 626f5f9 into main Oct 27, 2024
4 checks passed
@oluizeduardo oluizeduardo deleted the 50-support-sorting-parameters-to-diary-api branch October 27, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Sorting Parameters to Diary API
1 participant