Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-372

Need to set href value in the returned job execution for vert.x-based REST API

    Details

      Description

      A sample output from getting job execution:

      /Users/cfang/dev/jsr352/jberet-vertx/jberet-vertx-rest > curl -X POST http://localhost:8080/jobs/simple/start
      {
        "startTime" : 1513022600682,
        "endTime" : null,
        "batchStatus" : "STARTED",
        "exitStatus" : null,
        "executionId" : 1,
        "href" : null,
        "createTime" : 1513022599612,
        "lastUpdatedTime" : 1513022600682,
        "jobParameters" : {
          "jobXmlName" : "simple"
        },
        "jobName" : "simple",
        "jobInstanceId" : 1,
        "stepExecutions" : [ ]
      

      The href value is properly set in JAX-RS based REST API. See
      https://github.com/jberet/jsr352/blob/master/jberet-rest/jberet-rest-api/src/main/java/org/jberet/rest/resource/JobExecutionResource.java#L205

      the similar needs to be done for Vert.x-based impl.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  cfang Cheng Fang
                  Reporter:
                  cfang Cheng Fang
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: