You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@griffin.apache.org by "Aleksandr Borgatin (JIRA)" <ji...@apache.org> on 2019/03/14 21:40:00 UTC

[jira] [Created] (GRIFFIN-240) [Service] Return JobInstance in response to a call Trigger job by id

Aleksandr Borgatin created GRIFFIN-240:
------------------------------------------

             Summary: [Service] Return JobInstance in response to a call Trigger job by id 
                 Key: GRIFFIN-240
                 URL: https://issues.apache.org/jira/browse/GRIFFIN-240
             Project: Griffin (Incubating)
          Issue Type: Improvement
            Reporter: Aleksandr Borgatin


The proposal is following: in response of method "/jobs/trigger/\{id}" to return JobInstance
{code:java}
@RequestMapping(value = "/jobs/trigger/{id}", method = RequestMethod.POST)
@ResponseStatus(HttpStatus.OK)
public JobInstanceBean triggerJob(@PathVariable("id") Long id) throws SchedulerException
{ return jobService.triggerJobById(id); }{code}
Now this method looks like this
{code:java}
    @RequestMapping(value = "/jobs/trigger/{id}", method = RequestMethod.POST)
    @ResponseStatus(HttpStatus.NO_CONTENT)
    public void triggerJob(@PathVariable("id") Long id) throws SchedulerException {
        jobService.triggerJobById(id);
    }
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)