sourCEntral - mobile manpages

pdf

GitLab::API::v4::Mock::RESTClient

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.

pdf