Generate the optimal schedule for your employees.
Score: ?

REST API Guide

Employee Scheduling solver integration via cURL

1. Download demo data

            
            curl -X GET -H 'Accept:application/json' http://localhost:8080/demo-data/SMALL -o sample.json
    

2. Post the sample data for solving

The POST operation returns a jobId that should be used in subsequent commands.

            
            curl -X POST -H 'Content-Type:application/json' http://localhost:8080/schedules -d@sample.json
    

3. Get the current status and score

            
            curl -X GET -H 'Accept:application/json' http://localhost:8080/schedules/{jobId}/status
    

4. Get the complete solution

            
            curl -X GET -H 'Accept:application/json' http://localhost:8080/schedules/{jobId}
    

5. Fetch the analysis of the solution

            
            curl -X PUT -H 'Content-Type:application/json' http://localhost:8080/schedules/analyze -d@solution.json
    

5. Terminate solving early

            
            curl -X DELETE -H 'Accept:application/json' http://localhost:8080/schedules/{id}