GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve information about npm packages using the API v4 endpoint. It is useful for automating the retrieval of package details from GitLab's npm package registry, such as fetching metadata for a specific npm package by its name. This can be applied in CI/CD pipelines, package management automation, or integration workflows where npm package data from GitLab is required.

Use Case Examples

  1. Fetch details of an npm package named 'mypackage' from GitLab's npm registry.
  2. Automate the retrieval of package metadata for validation or reporting purposes in a DevOps workflow.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication when making the API request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request, defaulting to GET.
Query Parameters.package_name The name of the npm package to retrieve from the GitLab npm registry.

Output

JSON

  • response - The JSON response from the GitLab API containing details about the specified npm package.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the 'package_name' query parameter is provided and correctly spelled; missing or incorrect package names will result in API errors.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to access the npm package registry.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the API endpoint is reachable.

Links

Discussion