GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation fetches snippets from the GitLab API v4 endpoint. It is useful for retrieving code snippets stored in GitLab, which can be filtered by creation date and paginated. Practical applications include automating the retrieval of code snippets for analysis, backup, or integration with other tools.

Use Case Examples

  1. Retrieve all snippets created after a specific date to monitor recent code additions.
  2. Paginate through snippets to process or display them in batches.

Properties

Name Meaning
Skip Authentication If true, the node will skip using authentication for the API request.
Authentication Selects the authentication method to use, hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method HTTP method to use for the API request, default is GET.
Query Parameters Collection of optional query parameters to filter and paginate the snippets.

Output

JSON

  • snippets - Array of snippet objects returned from the GitLab API, each representing a code snippet with its metadata.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the baseUrl is correct and accessible; incorrect URLs will cause connection failures.
  • If authentication is enabled, verify that the API token or credentials are valid and have sufficient permissions to access snippets.
  • Invalid date formats in 'Created_after' or 'Created_before' parameters may cause API errors; use ISO 8601 date-time format.
  • Pagination parameters 'Page' and 'Per_page' should be positive integers; invalid values may result in errors or unexpected results.

Links

Discussion