Μετάβαση στο περιεχόμενο
GET /v1/project/merge-requests

Merge requests

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/gitlab-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/gitlab-api/v1/project/merge-requests" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gitlab-api/v1/project/merge-requests", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gitlab-api/v1/project/merge-requests");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/gitlab-api/v1/project/merge-requests",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": [
        {
            "id": 491535799,
            "iid": 238953,
            "sha": "2bf6216f7a96f1c67256a89efb6d22aae8d8795b",
            "draft": true,
            "state": "opened",
            "title": "Draft: Update `index_vuln_namespace_statistics_btree_traversal_ids`  unique index to add sharding key",
            "author": {
                "id": 7825316,
                "name": "Subashis  Chakraborty",
                "state": "active",
                "locked": false,
                "web_url": "https://gitlab.com/subashis",
                "username": "subashis",
                "avatar_url": "https://gitlab.com/uploads/-/system/user/avatar/7825316/avatar.png",
                "public_email": ""
            },
            "labels": [
                "Category:Vulnerability Management",
                "Data Warehouse::Impact Check",
                "automation:ml",
                "database",
                "database::review pending",
                "devops::security risk management",
                "group::security infrastructure",
                "maintenance::scalability",
                "missed:19.0",
                "pipeline::tier-1",
                "section::sec",
                "type::maintenance",
                "workflow::in dev"
            ],
            "squash": true,
            "upvotes": 0,
            "web_url": "https://gitlab.com/gitlab-org/gitlab/-/merge_requests/238953",
            "assignee": {
                "id": 7825316,
                "name": "Subashis  Chakraborty",
                "state": "active",
                "locked": false,
                "web_url": "https://gitlab.com/subashis",
                "username": "subashis",
                "avatar_url": "https://gitlab.com/uploads/-/system/user/avatar/7825316/avatar.png",
                "public_email": ""
            },
            "imported": false,
            "assignees": [
                {
                    "id": 7825316,
                    "name": "Subashis  Chakraborty",
                    "state": "active",
                    "locked": false,
                    "web_url": "https://gitlab.com/subashis",
                    "username": "subashis",
                    "avatar_url": "https://gitlab.com/uploads/-/system/user/avatar/7825316/avatar.png",
                    "public_email": ""
                }
            ],
            "closed_at": null,
            "closed_by": null,
            "downvotes": 0,
            "merged_at": null,
            "merged_by": null,
            "milestone": {
                "id": 6177882,
                "iid": 135,
                "state": "active",
                "title": "19.1",
                "expired": false,
                "web_url": "https://gitlab.com/groups/gitlab-org/-/milestones/135",
                "due_date": "2026-06-12",
                "group_id": 9970,
                "created_at": "2025-10-22T16:10:17.698Z",
                "start_date": "2026-05-16",
  
…