Closed rafapaulin closed 6 months ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code
:tada: This PR is included in version 1.0.0-beta.5 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Proposed Changes
Create a generic
GetByAttr
reusable function that can be used by more specificGetBy<Key|Slug|Name>
specific funcs, depending on the relevant entity. The functions returns one instance of the relevant entity.Contribution type
Related Issue(s)
Motivation, Context and Extra Info
Edgio's REST API does not support get by on its get methods, and sometimes the necessary ID may not be available to perform a GET method by entity's ID. Getting the entity by a human readable parameter may prove useful.
Checks
General
Code Standards
Documentation and reliability
Testing
How to verify the changes
1.Running the
main.go
file should run the developed functions returning relevant results.Screenshots (if appropriate)
N/A