This project provides a FastAPI backend for modeling Goal Structuring Notation (GSN) safety cases and System-Theoretic Process Analysis (STPA) artifacts. It offers REST endpoints to manage GSN nodes, STPA hazards, control actions, unsafe control actions, mitigation constraints, and evidence artifacts.
-
Install dependencies
pip install -r requirements.txt
-
Run the API
uvicorn app.main:app --reload
-
Explore the docs
Once the server is running, open http://127.0.0.1:8000/docs to try the interactive OpenAPI documentation.
The application stores data in a local SQLite database (safetycase.db) located in the project root. You can reset the data by deleting this file and restarting the application.