Repository navigation
Releases: Telecominfraproject/oopt-gnpy-api
Releases · Telecominfraproject/oopt-gnpy-api
Release list
oopt-gnpy-api v1.0
Migration of API from Flask to FastAPI
This commit marks a significant step in refactoring the API by migrating the web server from Flask to FastAPI. Key changes include:
- Replacing Flask with FastAPI: The application is now built with FastAPI, providing better performance and native support for OpenAPI documentation.
- Route updates: Routes have been adapted to use FastAPI's syntax and decorators (@app.get, @app.post, etc.).
- Error handling: Exception management has been adjusted to work with Starlette, the underlying framework of FastAPI.
- Automatic documentation: OpenAPI documentation is now accessible via the /openapi.json endpoint, facilitating API testing and integration.
- Dependency updates: The setup.cfg has been modified to include fastapi and uvicorn as required dependencies.
This migration enhances the API's performance, maintainability, and documentation capabilities while maintaining compatibility with existing clients.
oopt-gnpy-api v0.2.0
New Features
- Alignment with gnpy>=2.14 and its yang models
- Added a usage guide in the README.
Improvements
- Removed obsolete YANG models for better maintenance.
- Updated endpoint handling so that endpoints are only reachable when the version is included in the path.
Bug Fixes
- Fixed version endpoint and tests to rely on a common variable.
- Made input RFC 7951 compliant.
- Aligned tests with GNpy version 2.14.
oopt-gnpy-api v0.1.0
First release of oopt-gnpy-api
gnpyapi provides an experimental api for requesting several paths at once. It is based on Flask server.
You can run it through command line or Docker.
Enjoy!