Redesign RequestExecutor and HttpClient to support adding custom payload with further JSON serialization.
Possible solutions:
- Replace
String getResponse(ApiVariant variant) and String getResponse(ApiVariant variant, Method httpMethod) methods with method that receives an object that aggregates all request parameters(to get rid of method overloading).
Redesign
RequestExecutorandHttpClientto support adding custom payload with further JSON serialization.Possible solutions:
String getResponse(ApiVariant variant)andString getResponse(ApiVariant variant, Method httpMethod)methods with method that receives an object that aggregates all request parameters(to get rid of method overloading).