---
name: "GitLab::API::v4::Mock::RESTClient"
section: "3pm"
platform: "linux"
package: "libgitlab-api-v4-perl"
version: "0.27-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/GitLab::API::v4::Mock::RESTClient"
---

# GitLab::API::v4::Mock::RESTClient(3pm)

Mocked REST client that doesn't actually make HTTP requests.

## NAME

GitLab::API::v4::Mock::RESTClient - Mocked REST client that doesn't actually make HTTP requests.

## DESCRIPTION

This module is a subclass of GitLab::API::v4::RESTClient.  It modifies it to divert HTTP requests to GitLab::API::v4::Mock::Engine rather than making live requests.

This module is used by GitLab::API::v4::Mock.

## ATTRIBUTES

### engine

The GitLab::API::v4::Mock::Engine used behind the hood.

## USER ENDPOINTS

### GET users

Handles "users" in GitLab::API::v4.

### GET user/:id

Handles "user" in GitLab::API::v4.

### POST users

Handles "create\_user" in GitLab::API::v4.

### PUT user/:id

Handles "edit\_user" in GitLab::API::v4.

### DELETE user/:id

Handles "delete\_user" in GitLab::API::v4.

## SUPPORT

See "SUPPORT" in GitLab::API::v4.

## AUTHORS

See "AUTHORS" in GitLab::API::v4.

## LICENSE

See "LICENSE" in GitLab::API::v4.
