API接口:
https://8xhd.cc/api/v1/domains
请求示例:
curl --location --request GET 'https://8xhd.cc/api/v1/domains' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
sort
desc
, 升序 asc
默认为:desc
.per_page
10
发送到 100
默认为:10
.API接口:
https://8xhd.cc/api/v1/domains/{id}
请求示例:
curl --location --request GET 'https://8xhd.cc/api/v1/domains/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API接口:
https://8xhd.cc/api/v1/domains
请求示例:
curl --location --request POST 'https://8xhd.cc/api/v1/domains' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
name
index_page
not_found_page
API接口:
https://8xhd.cc/api/v1/domains/{id}
请求示例:
curl --location --request PUT 'https://8xhd.cc/api/v1/domains/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
index_page
not_found_page
API接口:
https://8xhd.cc/domains/{id}/destroy
请求示例:
curl --location --request DELETE 'https://8xhd.cc/domains/{id}/destroy' \ --header 'Authorization: Bearer {api_key}'