just/mocks_
mockzilla.org →
Catalog /developer /GitLab REST API

GitLab REST API

PROVIDER · Gitlab SPEC vv4 · OpenAPI 3.0.1 MOCK · LIVE
▸ TRY IT
https://api.justmocks.com/gitlab
Open mock →

Emulate the GitLab REST API in seconds. An OpenAPI definition for the GitLab REST API.

[01]

About

overview

Mock the GitLab REST API as a turnkey Mockzilla sim with 72 OpenAPI endpoints, realistic JSON payloads, no upstream signup or sandbox keys. An OpenAPI definition for the GitLab REST API. Methods: 33x GET, 14x PUT, 14x POST, 11x DELETE. Top resource groups: badges, access_requests, branches, bulk_imports. Hit https://api.justmocks.com/gitlab for the Mockzilla API Explorer landing and per-endpoint sample requests.

Endpoints
72 across 17 resource groups
Methods
GET 33 · POST 14 · PUT 14 · DEL 11 none deprecated
OpenAPI
3.0.1 spec version v4
Source spec
110 KB · YAML
[02]

Endpoints

72 operations · 17 resource groups
GET /groups/{id}/badges/{badge_id}
badges
Gets a badge of a group.
This feature was introduced in GitLab 10.6. Mocked via Mockzilla.
PUT /groups/{id}/badges/{badge_id}
badges
Updates a badge of a group.
This feature was introduced in GitLab 10.6.
DEL /groups/{id}/badges/{badge_id}
badges
Removes a badge from the group.
This feature was introduced in GitLab 10.6.
GET /groups/{id}/badges
badges
Gets a list of group badges viewable by the authenticated user.
This feature was introduced in GitLab 10.6.
POST /groups/{id}/badges
badges
Adds a badge to a group.
This feature was introduced in GitLab 10.6.
GET /groups/{id}/badges/render
badges
Preview a badge from a group.
This feature was introduced in GitLab 10.6. Available as a Mockzilla mock endpoint.
DEL /groups/{id}/access_requests/{user_id}
access_requests
Denies an access request for the given user.
This feature was introduced in GitLab 8.11.
PUT /groups/{id}/access_requests/{user_id}/approve
access_requests
Approves an access request for the given user.
This feature was introduced in GitLab 8.11.
GET /groups/{id}/access_requests
access_requests
Gets a list of access requests for a group.
This feature was introduced in GitLab 8.11.
POST /groups/{id}/access_requests
access_requests
Requests access for the authenticated user to a group.
This feature was introduced in GitLab 8.11.
DEL /projects/{id}/repository/merged_branches
branches
Delete all merged branches. Mockzilla mock: no signup, no API key.
GET /projects/{id}/repository/branches/{branch}
branches
Get a single repository branch
DEL /projects/{id}/repository/branches/{branch}
branches
Delete a branch
GET /projects/{id}/repository/branches
branches
Get a project repository branches
POST /projects/{id}/repository/branches
branches
Create branch
PUT /projects/{id}/repository/branches/{branch}/unprotect
branches
Unprotect a single branch. Served by the Mockzilla mock runtime.
PUT /projects/{id}/repository/branches/{branch}/protect
branches
Protect a single branch
GET /projects/{id}/badges/{badge_id}
badges
Gets a badge of a project.
This feature was introduced in GitLab 10.6.
PUT /projects/{id}/badges/{badge_id}
badges
Updates a badge of a project.
This feature was introduced in GitLab 10.6.
DEL /projects/{id}/badges/{badge_id}
badges
Removes a badge from the project.
This feature was introduced in GitLab 10.6.
GET /projects/{id}/badges
badges
Gets a list of project badges viewable by the authenticated user.
This feature was introduced in GitLab 10.6. Mocked via Mockzilla.
POST /projects/{id}/badges
badges
Adds a badge to a project.
This feature was introduced in GitLab 10.6.
GET /projects/{id}/badges/render
badges
Preview a badge from a project.
This feature was introduced in GitLab 10.6.
DEL /projects/{id}/access_requests/{user_id}
access_requests
Denies an access request for the given user.
This feature was introduced in GitLab 8.11.
PUT /projects/{id}/access_requests/{user_id}/approve
access_requests
Approves an access request for the given user.
This feature was introduced in GitLab 8.11.
GET /projects/{id}/access_requests
access_requests
Gets a list of access requests for a project.
This feature was introduced in GitLab 8.11. Available as a Mockzilla mock endpoint.
POST /projects/{id}/access_requests
access_requests
Requests access for the authenticated user to a project.
This feature was introduced in GitLab 8.11.
PUT /projects/{id}/alert_management_alerts/{alert_iid}/metric_images/{metric_image_id}
alert_management
Update a metric image for an alert
DEL /projects/{id}/alert_management_alerts/{alert_iid}/metric_images/{metric_image_id}
alert_management
Remove a metric image for an alert
GET /projects/{id}/alert_management_alerts/{alert_iid}/metric_images
alert_management
Metric Images for alert
POST /projects/{id}/alert_management_alerts/{alert_iid}/metric_images
alert_management
Upload a metric image for an alert. Mockzilla mock: no signup, no API key.
POST /projects/{id}/alert_management_alerts/{alert_iid}/metric_images/authorize
alert_management
Workhorse authorize metric image file upload
GET /admin/batched_background_migrations/{id}
batched_background_migrations
Retrieve a batched background migration
GET /admin/batched_background_migrations
batched_background_migrations
Get the list of batched background migrations
PUT /admin/batched_background_migrations/{id}/resume
batched_background_migrations
Resume a batched background migration
PUT /admin/batched_background_migrations/{id}/pause
batched_background_migrations
Pause a batched background migration. Served by the Mockzilla mock runtime.
GET /admin/ci/variables/{key}
ci_variables
Get the details of a specific instance-level variable
PUT /admin/ci/variables/{key}
ci_variables
Update an instance-level variable
DEL /admin/ci/variables/{key}
ci_variables
Delete an existing instance-level variable
GET /admin/ci/variables
ci_variables
List all instance-level variables
POST /admin/ci/variables
ci_variables
Create a new instance-level variable. Mocked via Mockzilla.
GET /admin/databases/{database_name}/dictionary/tables/{table_name}
admin
Retrieve dictionary details
GET /admin/clusters/{cluster_id}
clusters
Get a single instance cluster
This feature was introduced in GitLab 13.2. Returns a single instance cluster.
PUT /admin/clusters/{cluster_id}
clusters
Edit instance cluster
This feature was introduced in GitLab 13.2. Updates an existing instance cluster.
DEL /admin/clusters/{cluster_id}
clusters
Delete instance cluster
This feature was introduced in GitLab 13.2. Deletes an existing instance cluster. Does not remove existing resources within the connected Kubernetes cluster.
POST /admin/clusters/add
clusters
Add existing instance cluster
This feature was introduced in GitLab 13.2. Adds an existing Kubernetes instance cluster. Available as a Mockzilla mock endpoint.
GET /admin/clusters
clusters
List instance clusters
This feature was introduced in GitLab 13.2. Returns a list of instance clusters.
POST /admin/migrations/{timestamp}/mark
migrations
Mark the migration as successfully executed
DEL /applications/{id}
applications
Delete an application
Delete a specific application
GET /applications
applications
Get applications
List all registered applications
POST /applications
applications
Create a new application
This feature was introduced in GitLab 10.5. Mockzilla mock: no signup, no API key.
GET /avatar
avatar
Return avatar url for a user
GET /broadcast_messages/{id}
broadcast_messages
Get a specific broadcast message
This feature was introduced in GitLab 8.12.
PUT /broadcast_messages/{id}
broadcast_messages
Update a broadcast message
This feature was introduced in GitLab 8.12.
DEL /broadcast_messages/{id}
broadcast_messages
Delete a broadcast message
This feature was introduced in GitLab 8.12.
GET /broadcast_messages
broadcast_messages
Get all broadcast messages
This feature was introduced in GitLab 8.12. Served by the Mockzilla mock runtime.
POST /broadcast_messages
broadcast_messages
Create a broadcast message
This feature was introduced in GitLab 8.12.
GET /bulk_imports/{import_id}/entities/{entity_id}
bulk_imports
Get GitLab Migration entity details
This feature was introduced in GitLab 14.1.
GET /bulk_imports/{import_id}/entities
bulk_imports
List GitLab Migration entities
This feature was introduced in GitLab 14.1.
GET /bulk_imports/{import_id}
bulk_imports
Get GitLab Migration details
This feature was introduced in GitLab 14.1.
GET /bulk_imports/entities
bulk_imports
List all GitLab Migrations' entities
This feature was introduced in GitLab 14.1. Mocked via Mockzilla.
GET /bulk_imports
bulk_imports
List all GitLab Migrations
This feature was introduced in GitLab 14.1.
POST /bulk_imports
bulk_imports
Start a new GitLab Migration
This feature was introduced in GitLab 14.2.
GET /application/appearance
application
Get the current appearance
PUT /application/appearance
application
Modify appearance
GET /application/plan_limits
plan_limits
Get current plan limits
List the current limits of a plan on the GitLab instance. Available as a Mockzilla mock endpoint.
PUT /application/plan_limits
plan_limits
Change plan limits
Modify the limits of a plan on the GitLab instance.
GET /metadata
metadata
Retrieve metadata information for this GitLab instance
This feature was introduced in GitLab 15.2.
GET /version
metadata
Retrieves version information for the GitLab instance
This feature was introduced in GitLab 8.13 and deprecated in 15.5. We recommend you instead use the Metadata API.
GET /projects/{id}/jobs
jobs
List jobs for a project
GET /projects/{id}/jobs/{job_id}
jobs
Get a single job by ID
POST /projects/{id}/jobs/{job_id}/play
jobs
Run a manual job