Standardizing API Calls in Acquia DAM

Created on 20 March 2025, about 1 month ago

Problem/Motivation

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.

💬 Support request
Status

Active

Version

1.1

Component

Code

Created by

🇮🇳India rajeshreeputra Pune

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024