v2.0.1
Added
- New
/run_simulation_stream
endpoint 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.hpp
to flushstdout
after each line for better streaming support (seesrc/README.md
). - Improved the
\help
endpoint with more concise documentation. - Enabled CORS only for the
/run_simulation_stream
endpoint 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 adata
field. - Error responses now use
status: "error"
with amessage
and detailederror
fields.
- 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
500
to400
for invalid parameters. - Moved parameter validation from C++ to the API layer for a better user experience.
- Replaced the
ExactFit
algorithm withBestFit
. - Enhanced algorithms
Fixed
- Fixed docker image for deployment
Full Changelog: v1.1.1...v2.0.1