• v1.0.0 aaf697a005

    refactor: Improve endpoint robustness and client clarity

    nite released this 2025-11-03 07:25:53 +00:00 | 2 commits to main since this release

    Refactored client request parameter naming and enhanced endpoint methods for better validation and idiomatic behavior.

    • Renamed URL parameter to requestURL in Client.Request for improved clarity and to avoid potential naming conflicts.
    • Added validation to BaseEndpoint.GetByID to prevent queries with an ID of 0, returning an error.
    • Modified BaseEndpoint.GetByIDs to return an empty slice ([]*T{}) instead of an error when no IDs are provided, aligning with common Go idioms for empty result sets.
    • Enhanced BaseEndpoint.Count method to return an error if the API reports a count of 0, ensuring that a successful count operation always yields a positive result.
    Downloads