RASON REST API Endpoints
For all but the smallest / most quickly solved models, you'll need to use the second set of REST API calls. Each of these calls are asynchronous. You'll first need to make a call to the REST API endpoint POST rason.net/api/model which will create a "resource ID". Then you'll need to start an optimization, simulation, decision table recalculation, data science task via the REST API endpoints GET rason.net/api/model/{nameorid}/optimize, GET rason.net/api/model/{nameorid}/simulate, GET rason.net/api/model/{nameorid}/decision or GET rason.net/api/model/{nameorid}/datamine. Additionally, you can use GET rason.net/api/model/{nameorid}/solve to solve any type of RASON model (optimization, simulation, data science, or decision table) which will automatically create an OData endpoint for the results.
You can check on the model's progress at any time with the REST API endpoint GET rason.net/api/model/{nameorid}/status and obtain results when completed with the REST API endpoint GET rason.net/api/model/{nameorid}/result. To stop an optimization, simulation, decision table recalculation or data science task that is in progress, use POST rason.net/api/model/{nameorid}/stop. To delete a model or decision table, use DELETE rason.net/api/model/{nameorid}/delete.
|