gentics / mesh-incubator

Project which is home for planned enhancements for Gentics Mesh
3 stars 0 forks source link

Simplify Java MeshRestClient interface #25

Open philippguertler opened 5 years ago

philippguertler commented 5 years ago

Gentics Mesh Version, operating system, or hardware.

Issue

Currently every method in the MeshRestClient interface in Java has ParameterProvider... varargs. This results in a lot of duplicated code.

Solution

Remove the varargs parameter and add a .withParameters(ParameterProvider... parameters) method to the MeshRequest class. This unifies the process of adding parameters to one simple method.