Chuyển đến nội dung
Tài liệu API

Dự án

Sắp xếp tài nguyên của bạn trong các dự án.

Xác thực
Mỗi yêu cầu phải gửi header Authorization với token Bearer khớp với khóa API quản trị. Lấy khóa API.
Tài liệu API

Endpoint API
GET https://rqrcode.com/api/projects/
Ví dụ
curl --request GET \
--url 'https://rqrcode.com/api/projects/' \
--header 'Authorization: Bearer {api_key}'
Tham số
Tham số Chi tiết Mô tả
page
Tùy chọn ui.admin.api_docs.common.types.Số nguyên
Số trang mà bạn muốn lấy kết quả. Mặc định là 1.
results_per_page
Tùy chọn ui.admin.api_docs.common.types.Số nguyên
Số kết quả bạn muốn trên mỗi trang. Giá trị được phép: 10, 25, 50, 100, 250, 500, 1000. Mặc định là 25.
Ví dụ phản hồi
{
    "data": [
        {
            "id": 1,
            "name": "Phát triển",
            "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"
    }
}

Endpoint API
GET https://rqrcode.com/api/projects/{project_id}
Ví dụ
curl --request GET \
--url 'https://rqrcode.com/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}'
Tham số
Không có tham số bổ sung.
Ví dụ phản hồi
{
    "data": {
        "id": 1,
        "name": "Phát triển",
        "color": "#0e23cc",
        "last_datetime": null,
        "datetime": "2026-04-20 07:54:04"
    }
}

Endpoint API
POST https://rqrcode.com/api/projects
Ví dụ
curl --request POST \
--url 'https://rqrcode.com/api/projects' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Sản xuất' \
--form 'color=#ffffff'
Tham số
Tham số Chi tiết Mô tả
name
Bắt buộc ui.admin.api_docs.common.types.Chuỗi
Không có mô tả
color
Tùy chọn ui.admin.api_docs.common.types.Chuỗi
Không có mô tả
Ví dụ phản hồi
{
    "data": {
        "id": 1
    }
}

Endpoint API
POST https://rqrcode.com/api/projects/{project_id}
Ví dụ
curl --request POST \
--url 'https://rqrcode.com/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Sản xuất' \
--form 'color=#000000'
Tham số
Tham số Chi tiết Mô tả
name
Tùy chọn ui.admin.api_docs.common.types.Chuỗi
Không có mô tả
color
Tùy chọn ui.admin.api_docs.common.types.Chuỗi
Không có mô tả
Ví dụ phản hồi
{
    "data": {
        "id": 1
    }
}

Endpoint API
DELETE https://rqrcode.com/api/projects/{project_id}
Ví dụ
curl --request DELETE \
--url 'https://rqrcode.com/api/projects/{project_id}' \
--header 'Authorization: Bearer {api_key}'
Tham số
Không có tham số bổ sung.
Ví dụ phản hồi
Nội dung phản hồi 200 trống khi thành công.