mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-14 16:33:56 +00:00
* Revert "v7.14.0 release (#21443)" This reverts commit 5eb083e5ce1dd99659fadc03d7c6e809d3077af6. * prepare v7.15.0 snapshot * update samples * update readme * update doc
OpenAPI generated FastAPI server
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Generator version: 7.15.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonFastAPIServerCodegen
Requirements.
Python >= 3.7
Installation & Usage
To run the server, please execute the following from the root directory:
pip3 install -r requirements.txt
PYTHONPATH=src uvicorn openapi_server.main:app --host 0.0.0.0 --port 8080
and open your browser at http://localhost:8080/docs/
to see the docs.
Running with Docker
To run the server on a Docker container, please execute the following from the root directory:
docker compose up --build
Tests
To run the tests:
pip3 install pytest
PYTHONPATH=src pytest tests