Skip to content

Conversation

@Programador-jr
Copy link
Owner

@Programador-jr Programador-jr commented Jan 26, 2025

Description:
This PR introduces the following additions and improvements to the API:

  • New fields Endpoint: Added support for the fields parameter, allowing users to select specific fields in the response.
  • Dynamic Filters: Introduced dynamic filters to enable more flexible queries based on attributes like primaryMuscles, secondaryMuscles, and level.
  • New Error Logs: Created detailed logs to validate the fields, lang, page, and limit parameters, ensuring clearer feedback in case of errors.
  • Validation and Fixes:
    • Enhanced validation for empty or invalid fields parameters, returning a 400 Bad Request error.
    • Adjusted default pagination to start at page 0, aligning with common programming practices.

Checklist:

  • Added support for the fields parameter.
  • Implemented dynamic filters for advanced queries.
  • Improved error logs for parameter validation.
  • Tested edge cases for all parameters and API responses.

Impact:
These changes enhance the API’s flexibility and robustness, providing a better experience for developers and end users.

@vercel
Copy link

vercel bot commented Jan 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
exercise-api ✅ Ready (Inspect) Visit Preview Jan 26, 2025 11:06pm

@Programador-jr Programador-jr merged commit edc2d42 into main Jan 26, 2025
1 check passed
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.

2 participants