Usage scenario

Create batch with souce codes

Upload batch to server

export SERVER=http://www.dalineage.com/
export FILE=myfile.zip
curl -k -u myuser:mypassword -X POST -H "Content-type: application/zip" $SERVER/api/upload -T $FILE

Check processing status

export SERVER=http://www.dalineage.com/
curl -k -u myuser:mypassword -X GET -H "Accept: application/json" $SERVER/api/status/{user}/{batch_id}

There are 5 possible status:

Delete batch

export SERVER=http://www.dalineage.com/
curl -k -u myuser:mypassword -X DELETE "$SERVER/api/batch/{user}/{batch_id}?permanent=true"

Use permanent query parameter to delete batch permanently or move it into deleted director.

See visualization

Swagger

Try the REST API using Swagger