-
refactor: Improve endpoint robustness and client clarity
released this
2025-11-03 07:25:53 +00:00 | 2 commits to main since this releaseRefactored client request parameter naming and enhanced endpoint methods for better validation and idiomatic behavior.
- Renamed
URLparameter torequestURLinClient.Requestfor improved clarity and to avoid potential naming conflicts. - Added validation to
BaseEndpoint.GetByIDto prevent queries with an ID of 0, returning an error. - Modified
BaseEndpoint.GetByIDsto 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.Countmethod to return an error if the API reports a count of 0, ensuring that a successful count operation always yields a positive result.
Downloads
- Renamed