GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the raw content of a specific project snippet from GitLab using the GitLab API. It is useful for scenarios where you need to access the raw code or text stored in a snippet within a GitLab project, such as for code review automation, backup, or integration with other tools.

Use Case Examples

  1. Fetch the raw content of a snippet to display it in a custom dashboard.
  2. Download snippet content for automated processing or analysis.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used, typically a GitLab API key.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET.
Parameter Schema Defines the required path parameters for the API call, including project ID and snippet ID.
Request Body Schema Schema for the request body, not used in this GET operation.
Request Path The API endpoint path template for accessing the raw snippet content.
Path Parameters Collection of path parameters including 'id' (project ID or URL-encoded path) and 'snippet_id' (ID of the snippet).

Output

JSON

  • rawContent - The raw content of the project snippet retrieved from GitLab.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and snippet ID are correct and accessible with the provided credentials.
  • Check that the GitLab base URL is correct if using a self-hosted instance.
  • Authentication errors may occur if the API key is missing or invalid.

Links

Discussion