GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation fetches feature flags for a specific project from the GitLab Unleash API. It is useful for retrieving client feature flag configurations in a GitLab project, which can help in managing feature toggles dynamically in applications. For example, a developer can use this node to get the current feature flags for a project to enable or disable features based on the flags' states.

Use Case Examples

  1. Retrieve feature flags for project ID '123' to determine which features are enabled for the client application.
  2. Fetch feature flags with optional query parameters like instance ID and app name to customize the feature flag retrieval for different client instances.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters for the request, including instance_id and app_name to specify the Unleash client instance and application name respectively.
Path Parameters Path parameters for the request, specifically the project_id which identifies the GitLab project.

Output

JSON

  • featureFlags - Array of feature flags returned from the GitLab Unleash API for the specified project.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project_id path parameter is provided and valid; missing or incorrect project_id will cause request failures.
  • If authentication is enabled, verify that the GitLab API credential is correctly configured and has necessary permissions.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • If query parameters instance_id or app_name are used, ensure they are valid strings as expected by the API.

Links

Discussion