Məzmuna keç
API sənədləri

Layihələr

Resursları layihələr üzrə təşkil edin.

Autentifikasiya
Hər sorğu admin API açarına uyğun Bearer token ilə Authorization başlığını göndərməlidir. API açarını əldə et.
API sənədləri

Son nöqtə
GET https://rqrcode.com/api/projects/
Nümunə
curl --request GET \
--url 'https://rqrcode.com/api/projects/' \
--header 'Authorization: Bearer {api_key}'
Parametrlər
Parametrlər Detallar Təsvir
page
İstəyə bağlı ui.admin.api_docs.common.types.Tam ədəd
Nəticələri almaq üçün istifadə olunan səhifə nömrəsi. Defolt olaraq 1.
results_per_page
İstəyə bağlı ui.admin.api_docs.common.types.Tam ədəd
Hər səhifədə nəticələrin sayı. İcazə verilən dəyərlər: 10, 25, 50, 100, 250, 500, 1000. Defolt olaraq 25.
Cavab nümunəsi
{
    "data": [
        {
            "id": 1,
            "name": "İnkişaf",
            "color": "#0e23cc",
            "last_datetime": null,
            "datetime": "2026-04-20 07:54:04"
        }
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://rqrcode.com/api/projects?page=1",
        "last": "https://rqrcode.com/api/projects?page=1",
        "next": null,
        "prev": null,
        "self": "https://rqrcode.com/api/projects?page=1"
    }
}

Son nöqtə
GET https://rqrcode.com/api/projects/{project_id}
Nümunə
curl --request GET \
--url 'https://rqrcode.com/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}'
Parametrlər
Əlavə parametr yoxdur.
Cavab nümunəsi
{
    "data": {
        "id": 1,
        "name": "İnkişaf",
        "color": "#0e23cc",
        "last_datetime": null,
        "datetime": "2026-04-20 07:54:04"
    }
}

Son nöqtə
POST https://rqrcode.com/api/projects
Nümunə
curl --request POST \
--url 'https://rqrcode.com/api/projects' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=İstehsal' \
--form 'color=#ffffff'
Parametrlər
Parametrlər Detallar Təsvir
name
Tələb olunur ui.admin.api_docs.common.types.Mətn
-
color
İstəyə bağlı ui.admin.api_docs.common.types.Mətn
-
Cavab nümunəsi
{
    "data": {
        "id": 1
    }
}

Son nöqtə
POST https://rqrcode.com/api/projects/{project_id}
Nümunə
curl --request POST \
--url 'https://rqrcode.com/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=İstehsal' \
--form 'color=#000000'
Parametrlər
Parametrlər Detallar Təsvir
name
İstəyə bağlı ui.admin.api_docs.common.types.Mətn
-
color
İstəyə bağlı ui.admin.api_docs.common.types.Mətn
-
Cavab nümunəsi
{
    "data": {
        "id": 1
    }
}

Son nöqtə
DELETE https://rqrcode.com/api/projects/{project_id}
Nümunə
curl --request DELETE \
--url 'https://rqrcode.com/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}'
Parametrlər
Əlavə parametr yoxdur.
Cavab nümunəsi
Uğurlu olduqda boş 200 cavab gövdəsi.