Skip to content

v1.1.2

Latest
Compare
Choose a tag to compare
@Programador-jr Programador-jr released this 08 Jan 17:58
· 9 commits to main since this release
0293efb

Release Notes: API MuscleLib v1.1.2


Bug Fix in Search Endpoint

  • Identified Issue:
    A bug in the /api/exercises/search endpoint caused failures when processing search queries due to an undefined variable (formattedExercises), leading to inconsistent API responses.

  • Fix Implemented:

    • The issue was resolved by replacing formattedExercises with the correct variable name (matchedExercises), ensuring that search results are returned as expected.

Localized Logs (EN and PT)

  • Improvement Added:
    The API now adapts its error logs and internal messages to the language specified in the lang parameter (en or pt).

    • If lang=en: Logs are displayed in English.
    • If lang=pt: Logs are displayed in Portuguese.
  • Benefits:

    • Easier error interpretation for developers in different languages.
    • Improved consistency with the language used in the API requests.

Updated Usage Example

  • Search Request:

    GET https://libapi.vercel.app/api/exercises/search?lang=pt&query=crucifix
  • Corresponding Log:

    • PT: Nenhum exercício encontrado para o termo: crucifix
    • EN: No exercises found for the term: crucifix

This update enhances the developer experience by providing clearer logs and resolving a critical issue in the search endpoint.