Skip to content

Add /cloud_connector/services/:name API endpoint

What does this MR do and why?

Add /cloud_connector/services/:service_name API endpoint to fetch CloudConnector service information for a current user.

As part of the task forceAI Context, the vscode (any editor) extension needs to verify whether certain features are enabled for a user. Each feature is defined as a separate Unit Primitive and a Cloud Connector service. We need to add the ability to check whether a specific service is available to a user.

Related to #494320

MRs adding Unit Primitives:

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

export GITLAB_LOCALHOST_TOKEN = YOUR_TOKEN

curl --request GET \
        --url http://127.0.0.1:3000/api/v4/cloud_connector/services/code_suggestions \
        --header 'Content-Type: application/json' \
        --header "Private-Token: $GITLAB_LOCALHOST_TOKEN"

Merge request reports

Loading