Change request path from 'disable' to 'enable'
Technoboy- opened this issue · 1 comments
Technoboy- commented
The current implementation of CloudAppRestfulApi#enable :
/**
* Enable cloud job.
*
* @param jobName job name
* @throws JSONException parse json exception
*/
@DELETE
@Path("/{jobName}/disable")
public void enable(@PathParam("jobName") final String jobName) throws JSONException {
Optional<CloudJobConfiguration> configOptional = configService.load(jobName);
if (configOptional.isPresent()) {
facadeService.enableJob(jobName);
producerManager.reschedule(jobName);
}
}
It should use @post and @path("/{jobName}/enable")'
And the same issue with CloudJobRestfulApi#enable method.
Technoboy- commented
I will fix it later!