도메인

참고
전문가 수준
The API key should be sent as a Bearer token in the Authorization header of the request. API 키 가져오기.
목록

API endpoint:

GET
https://ppomo.cc/api/v1/domains

요청 예제:

curl --location --request GET 'https://ppomo.cc/api/v1/domains' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
유형
설명
search
선택사항 string
검색 쿼리
sort
선택사항 string
Sort by. 가능한 값은: desc for 내림차순, asc for 오름차순.
Show

API endpoint:

GET
https://ppomo.cc/api/v1/domains/{id}

요청 예제:

curl --location --request GET 'https://ppomo.cc/api/v1/domains/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://ppomo.cc/api/v1/domains

요청 예제:

curl --location --request POST 'https://ppomo.cc/api/v1/domains' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
Parameter
유형
설명
name
필수 string
The space name.
index_page
선택사항 string
The index page to redirect to.
not_found_page
선택사항 string
The 404 page to redirect to.
업데이트

API endpoint:

PUT PATCH
https://ppomo.cc/api/v1/domains/{id}

요청 예제:

curl --location --request PUT 'https://ppomo.cc/api/v1/domains/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
Parameter
유형
설명
index_page
선택사항 string
The index page to redirect to.
not_found_page
선택사항 string
The 404 page to redirect to.
삭제

API endpoint:

DELETE
https://ppomo.cc/api/v1/domains/{id}

요청 예제:

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