맞춤 도메인
GET https://pushye.com/api/domains/
curl --request GET \
--url 'https://pushye.com/api/domains/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushye.com/api/domains/' \
--header 'Authorization: Bearer {api_key}' \
매개변수 | 세부사항 | 설명 |
---|---|---|
page | 선택 사항 정수 | 결과를 원하는 페이지 번호입니다. 기본값은 1 입니다. |
results_per_page | 선택 사항 정수 | 페이지당 원하는 결과 수는 얼마입니까? 허용되는 값은: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . 기본값은 25 입니다. |
{
"data": [
{
"id": 1,
"scheme": "https://",
"host": "example.com",
"custom_index_url": "",
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-02-05 12:45:24"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://pushye.com/api/domains?&page=1",
"last": "https://pushye.com/api/domains?&page=1",
"next": null,
"prev": null,
"self": "https://pushye.com/api/domains?&page=1"
}
}
GET https://pushye.com/api/domains/{domain_id}
curl --request GET \
--url 'https://pushye.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushye.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"scheme": "https://",
"host": "example.com",
"custom_index_url": "",
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-02-05 12:45:24"
}
}
POST https://pushye.com/api/domains
매개변수 | 세부사항 | 설명 |
---|---|---|
host | 필수 문자열 | - |
custom_index_url | 선택 사항 문자열 | - |
custom_not_found_url | 선택 사항 문자열 | - |
curl --request POST \
--url 'https://pushye.com/api/domains' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
--form 'custom_index_url=https://example.com/' \
--form 'custom_not_found_url=https://example.com/404-page'
--url 'https://pushye.com/api/domains' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
--form 'custom_index_url=https://example.com/' \
--form 'custom_not_found_url=https://example.com/404-page'
{
"data": {
"id": 1
}
}
POST https://pushye.com/api/domains/{domain_id}
매개변수 | 세부사항 | 설명 |
---|---|---|
host | 선택 사항 문자열 | - |
custom_index_url | 선택 사항 문자열 | - |
custom_not_found_url | 선택 사항 문자열 | - |
curl --request POST \
--url 'https://pushye.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
--url 'https://pushye.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=example.com' \
{
"data": {
"id": 1
}
}
DELETE https://pushye.com/api/domains/{domain_id}
curl --request DELETE \
--url 'https://pushye.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://pushye.com/api/domains/{domain_id}' \
--header 'Authorization: Bearer {api_key}' \