The backend exposes a RESTful API for interacting with the application's data. All endpoints are available under the /api/v1 prefix.
POST /auth/login: Authenticates a user and returns a JWT.POST /auth/refresh: Refreshes an expired JWT.
GET /plants: Returns a list of all plants.POST /plants: Creates a new plant.GET /plants/{plant_id}: Returns the details of a specific plant.
GET /workflows: Returns a list of all workflows.POST /workflows: Creates a new workflow.GET /workflows/{workflow_id}: Returns the details of a specific workflow.
GET /dashboard/metrics: Returns key metrics for the main dashboard.
GET /documents: Returns a list of all documents.POST /documents: Uploads a new document.
POST /ai-assistant/chat: Sends a message to the AI assistant and returns a response.
GET /users: Returns a list of all users.POST /users: Creates a new user.