Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

rest api

Mahmoud Ben Hassine edited this page Jun 23, 2017 · 6 revisions

The job server exposes the following REST endpoints:

Endpoint HTTP Method Description
/jobs GET Get all registered jobs
/requests GET Get all job requests
/requests POST Post a new job request
/executions GET Get all job executions

Posting a new job request requires at least to specify the JobId parameter. Job parameters should be posted as JSON payload. Here is an example:

$>curl -X POST \
       -H "Content-Type: application/json" \
       --data '{"jobId":"1", "name":"world"}' \
       localhost:8080/requests

This will request an execution of the job having jobId=1 with parameter name=world. If there is no job with the given id, the request will be ignored.

Clone this wiki locally