EntitiesController { @RequestMapping( value = "/entities/{entityName}/flows/input/{flowName}/run", method = RequestMethod.GET, produces="application/json" ) @ResponseBody public Map<String, Object> getInputFlowOptions( @PathVariable String entityName, @PathVariable String flowName) throws IOException { return legacyFlowManagerService.getFlowMlcpOptionsFromFile(entityName, flowName); }  @RequestMapping(value = "/entities/create", method = RequestMethod.POST) @ResponseBody EntityModel createEntity(@RequestBody EntityModel newEntity); @RequestMapping(value = "/entities/", method = RequestMethod.GET) @ResponseBody Collection<EntityModel> getEntities(); @RequestMapping(value = "/entities/", method = RequestMethod.POST) @ResponseBody ResponseEntity<?> saveEntities(@RequestBody List<EntityModel> entities); @RequestMapping(value = "/entities/ui/", method = RequestMethod.POST) @ResponseBody ResponseEntity<?> saveEntitiesUiState(@RequestBody List<EntityModel> entities); @RequestMapping(value = "/entities/{entityName}", method = RequestMethod.PUT) @ResponseBody EntityModel saveEntity(@RequestBody EntityModel entity); @RequestMapping(value = "/entities/{entityName}", method = RequestMethod.GET) @ResponseBody EntityModel getEntity(@PathVariable String entityName, @RequestParam(required = false)Boolean extendSubEntities); @RequestMapping(value = "/entities/{entityName}", method = RequestMethod.DELETE) @ResponseBody ResponseEntity<?> deleteEntity(@PathVariable String entityName); @RequestMapping(value = "/entities/{entityName}/flows/{flowType}", method = RequestMethod.POST) @ResponseBody FlowModel createFlow(
            @PathVariable String entityName,
            @PathVariable FlowType flowType,
            @RequestBody FlowModel newFlow); @RequestMapping(value = "/entities/{entityName}/flows/{flowName}/{flowType}", method = RequestMethod.DELETE) @ResponseBody ResponseEntity<?> deleteFlow(
        @PathVariable String entityName,
        @PathVariable String flowName,
        @PathVariable FlowType flowType); @RequestMapping(value = "/entities/{entityName}/flows/harmonize/{flowName}/run", method = RequestMethod.POST) @ResponseBody ResponseEntity<?> runHarmonizeFlow(
            @PathVariable String entityName,
            @PathVariable String flowName,
            @RequestBody JsonNode json); @RequestMapping( value = "/plugin/save", method = RequestMethod.POST ) @ResponseBody String saveFlowPlugin(
        @RequestBody PluginModel plugin); @RequestMapping( value = "/entities/{entityName}/flows/{flowType}/{flowName}/plugin/validate", method = RequestMethod.POST ) @ResponseBody JsonNode validateFlowPlugin(
        @PathVariable String entityName,
        @PathVariable FlowType flowType,
        @PathVariable String flowName,
        @RequestBody PluginModel plugin); @RequestMapping(value = "/entities/{entityName}/flows/harmonize/{flowName}/save-harmonize-options", method = RequestMethod.POST) @ResponseBody ResponseEntity<?> saveHarmonizeFlowOptions(
        @PathVariable String entityName,
        @PathVariable String flowName,
        @RequestBody JsonNode json); @RequestMapping(value = "/entities/{entityName}/flows/input/{flowName}/save-input-options", method = RequestMethod.POST) @ResponseBody ResponseEntity<?> saveInputFlowOptions(
        @PathVariable String entityName,
        @PathVariable String flowName,
        @RequestBody JsonNode json); @RequestMapping(value = "/entities/{entityName}/flows/input/{flowName}/run", method = RequestMethod.POST) ResponseEntity<?> runInputFlow(
            @PathVariable String entityName,
            @PathVariable String flowName,
            @RequestBody JsonNode json); @RequestMapping(value = "/entities/{entityName}/flows/{flowName}/cancel/{jobId}", method = RequestMethod.DELETE) ResponseEntity<?> cancelFlow(
            @PathVariable String entityName,
            @PathVariable String flowName,
            @PathVariable String jobId); @RequestMapping( value = "/entities/{entityName}/flows/input/{flowName}/run", method = RequestMethod.GET, produces="application/json" ) @ResponseBody Map<String, Object> getInputFlowOptions(
            @PathVariable String entityName,
            @PathVariable String flowName);  }
@Test public void getInputFlowOptions() throws Exception { Map<String, Object> options = ec.getInputFlowOptions("test-entity", "flow-name"); JSONAssert.assertEquals("{ \"input_file_path\": " + hubConfig.getHubProject().getProjectDirString() + " }", new ObjectMapper().writeValueAsString(options), true); }