Releases: MirkoZETA/FlexNetSim-API
Releases · MirkoZETA/FlexNetSim-API
v2.0.2
Added
- Comprehensive unit tests for parameter validation in simulation requests
- Better validation error messages for all simulation parameters
- Helper methods for test assertions to improve code readability
- Added fallback mechanism to recompile the simulation executable if prerequisites are not met in both
/run_simulationand/run_simulation_streamendpoints.
Changed
- Enhanced test coverage for the helpers module
- Improved test structure with dedicated test methods per parameter
Fixed
- Edge case handling in parameter validation
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
v2.0.0
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
Full Changelog: v1.1.0...v2.0.0
v1.1.1
Added
- Deployed coverage to pages
Fixed
- Fixed pipeline for GitHub pages
- Fixed badges
v1.1.0
Added
- Comprehensive unit tests for all API endpoints and functions
- Test coverage reporting with pytest-cov
- GitHub Pages integration for coverage reports
- Coverage badges in README.md
- New GitHub Actions workflow for test coverage
Changed
- Improved documentation in README.md with clearer structure and badges
- Enhanced API documentation in backend.py with better comments and docstrings
- Updated development guide with clearer instructions
- Refactored GitHub Actions workflows to separate testing and deployment
- Improved code comments and function documentation
Fixed
- Modified .gitignore to handle coverage files
v1.0.0
- This API hopefully serves as playground to all new users of Flex Net Sim C++ simulation library.
- The current version utilizes Flex Net Sim v0.8.1.
/run_simulationendpoint for simulation includes parameters such as:algorithm: FirstFit, ExactFit.networkType: Only 1 (EON) available for now.goalConnections: 1 to 10,000,000.confidence: significance level (alpha) greater than zero.lambdaParam: Arrival rate (lambda) of connection requests.mu: departure rate of connection requests.network: name of the netowrk to simulate,Cost239,EuroCore,GermanNet,UKNet,NSFNet.bitrate: fixed-rate or flex-rate.K: Number of paths to consider during allocation, max 6.
/helpendpoint provides detailed information about the/run_simulationendpoint.- API allocated in cloud run.
- Documentation README for the process of develop/deployment located in workflows.