Why do you build the HttpClient in the execute method?
I mean this part of the code:

It's better if make the HttpClient instance singleton or get that as a dependency in the KavenegarApi class.
If you want my recommendation, it's better if you give both solutions.
Why do you build the HttpClient in the execute method?
I mean this part of the code:
It's better if make the HttpClient instance singleton or get that as a dependency in the KavenegarApi class.
If you want my recommendation, it's better if you give both solutions.