Api request
gitlab_api_requestSend custom HTTP requests to the GitLab API by specifying method, endpoint, and optional form or JSON body.
Instructions
Make a custom API request to the GitLab server.
Args: method: The HTTP method to use (GET, POST, PUT, DELETE). endpoint: The API endpoint to call. data: The data to send in the request body (for form data). json: The JSON data to send in the request body.
Returns: Response: A wrapper containing the original response and the response data (if applicable).
Raises: ValueError: If an unsupported HTTP method is provided. ParameterError: If invalid parameters are provided. HTTPError: If the API request fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| json | No | ||
| method | Yes | ||
| endpoint | Yes |