I am trying to send both or one of the optional request parameters of my API to another calling method/ function. Can someone advice me on how, if that is possible please.
public ca.alea.cam.api.model.Response importStaticFile(@RequestBody(required = false) List<String> str, @RequestPart(required = false) MultipartFile file) throws Exception, ContentRepositoryDaoException {
...
// some code...
// I want to send str and/or file to another method
method_name(str,file);
...
}
Thanks