- Issue created by @rajeshreeputra
We have observed inconsistencies in the calling conventions of the API in src/Client/AcquiaDamClient.php. Notably, there are two distinct formats being used: $this->get('/v2/assets/search?' . $query);
and $this->get("https://$domain/api/rest/asset/uuid/$id/assetversions");
.
This inconsistency can lead to confusion, making the codebase hard to maintain and potentially causing inefficiencies. To mitigate this, we propose the standardization of the API calls across the system.
Our goal is to create a singular, uniform way of making these calls, thereby improving readability, ease of maintenance, and consistency. This involves designing and implementing a standard template for API calls, applying these standards throughout Acquia DAM, and conducting rigorous testing to ensure these changes enhance overall functionality and interaction with the API.
Active
1.1
Code