Sanitaze the API according to rest principles
For workflows List Workflows: Endpoint: GET /workflows Description: Retrieve a list of all workflows. Replaces the /descriptions and the existing endpoint.
Create Workflow:
Endpoint: POST /workflows
Description: Create a new workflow. As is now.
Get Workflow by ID:
Endpoint: GET /workflows/{workflow_id}
Description: Retrieve a specific workflow by its unique identifier. Replaces the /workflow/id.
Update Workflow by ID:
Endpoint: PUT /workflows/{workflow_id}
Description: Update an existing workflow identified by its unique identifier. Replaces the /workflow/id.
Delete Workflow by ID:
Endpoint: DELETE /workflows/{workflow_id}
Description: Delete a specific workflow by its unique identifier. Replaces the /workflow/id.
The above principles should be applied to every entity.