csle_rest_api.resources.simulations package

Submodules

csle_rest_api.resources.simulations.routes module

Routes and sub-resources for the /simulations resource

csle_rest_api.resources.simulations.routes.get_simulation(simulation_id: int) Tuple[flask.wrappers.Response, int][source]

The /simulations/id resource. Gets or deletes a simulation with a given id.

Parameters

simulation_id – the id of the simulation

Returns

the simulation or deletes the simulation

csle_rest_api.resources.simulations.routes.simulation_ids() Tuple[flask.wrappers.Response, int][source]
Returns

the list of simulation ids as an HTTP response

csle_rest_api.resources.simulations.routes.simulations() Tuple[flask.wrappers.Response, int][source]

The /simulations resource

Returns

Returns a list of simulations, a list of simulation ids, or deletes all simulations

Module contents