欢迎使用abS短域系统,三秒记住本站域名 abab.cab 阿巴阿巴 草 阿巴

域名

记录
专家级
API 密钥应作为承载令牌在请求的授权标头中发送 获取你的API密钥.
列表

API:

GET
https://abab.cab/api/v1/domains

请求示例:

curl --location --request GET 'https://abab.cab/api/v1/domains' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
参数
类型
描述
search
可选 string
搜索查询
search_by
可选 string
搜索于. 可能为: name for 名称. 默认为: name.
sort_by
可选 string
Sort by. 可能为: id for Date created, name for 名称. 默认为: id.
sort
可选 string
排序. 可能为: desc for 下降, asc for 上升. 默认为: desc.
per_page
可选 int
每页结果. 可能为: 10, 25, 50, 100. 默认为: 10.
展示

API:

GET
https://abab.cab/api/v1/domains/{id}

请求示例:

curl --location --request GET 'https://abab.cab/api/v1/domains/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
商店

API:

POST
https://abab.cab/api/v1/domains

请求示例:

curl --location --request POST 'https://abab.cab/api/v1/domains' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}'
参数
类型
描述
name
必要 string
域名名称
index_page
可选 string
重定向主页
not_found_page
可选 string
重定向错误页
更新

API:

PUT PATCH
https://abab.cab/api/v1/domains/{id}

请求示例:

curl --location --request PUT 'https://abab.cab/api/v1/domains/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
参数
类型
描述
index_page
可选 string
重定向主页
not_found_page
可选 string
重定向错误页
删除

API:

DELETE
https://abab.cab/api/v1/domains/{id}

请求示例:

curl --location --request DELETE 'https://abab.cab/api/v1/domains/{id}' \
--header 'Authorization: Bearer {api_key}'