v2.0.1
Added
- New
/run_simulation_streamendpoint for streaming simulation results in real-time:- Streaming responses include event types and structured JSON data.
- Refactored backend code to reduce duplication and improve maintainability.
- Added unit tests for the streaming endpoint.
- Modified
simulator.hppto flushstdoutafter each line for better streaming support (seesrc/README.md). - Improved the
\helpendpoint with more concise documentation. - Enabled CORS only for the
/run_simulation_streamendpoint to allow controlled API access.
Changed
- Switched to Flex Net Sim v0.8.2.
- Standardized API response format for better consistency:
- Success responses now use
status: "success"with data in adatafield. - Error responses now use
status: "error"with amessageand detailederrorfields.
- Success responses now use
- Reorganized the test suite into separate files for better maintainability.
- Improved parameter validation with descriptive error messages.
- Changed the error response code from
500to400for invalid parameters. - Moved parameter validation from C++ to the API layer for a better user experience.
- Replaced the
ExactFitalgorithm withBestFit. - Enhanced algorithms
Fixed
- Fixed docker image for deployment
Full Changelog: v1.1.1...v2.0.1