Skip to content

Refactor Api clients to a base implementation#11

Merged
carlosantoniodasilva merged 6 commits intomainfrom
ca-refactor-api-client
Mar 5, 2026
Merged

Refactor Api clients to a base implementation#11
carlosantoniodasilva merged 6 commits intomainfrom
ca-refactor-api-client

Conversation

@carlosantoniodasilva
Copy link
Member

@carlosantoniodasilva carlosantoniodasilva commented Mar 5, 2026

Share most of the logic to send reports to our API, but let the individual implementations handle the HTTP layer (the actual HTTP request), and return an "HttpResult"-type object with success vs error.

The bulk of the logic has been moved to the ApiClientBase (renamed from ApiClient, to match ConfigBase).

The original goal was to add retrying, but the java packages already implement it, but now that logic is shared. We can add exponential backoff as a follow-up.

Samples

Screenshot 2026-03-05 at 11 52 15


Screenshot 2026-03-05 at 11 59 40

@carlosantoniodasilva carlosantoniodasilva self-assigned this Mar 5, 2026
`bin/dev` was actually not present in the spring-boot-2-sample, so add
it, and fix the Procfile matching the other spring-boot-sample.

Cleanup procfile from spring-boot-sample removing commented stuff for
running as "render", we never use that and it's been removed from other
projects.
Copy link
Member

@adamlogic adamlogic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@carlosantoniodasilva carlosantoniodasilva merged commit 64a2925 into main Mar 5, 2026
2 checks passed
@carlosantoniodasilva carlosantoniodasilva deleted the ca-refactor-api-client branch March 5, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants