Added project id to the internal workflow API get method

What does this MR do and why?

Added project id to the internal workflow API get method

We need the internal project id in the internal workflow API so that Duo Workflow Service can fetch project details and add it to the default prompt

References

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. Enable the duo_workflows feature flag
  2. Create a workflow from the IDE
  3. Curl the workflow endpoint with your workflow ID to see the project_id field added

curl -v -H "Authorization: Bearer $GITLAB_TOKEN_LOCAL" '``http://gdk.test:3000/api/v4/ai/duo_workflows/workflows/221``'

Merge request reports

Loading