Dominio

Notas
Nivel de expertos
La clave API debe enviarse como token portador en el encabezado de autorización de la solicitud. Obtenga su clave API.
Lista

Punto final de la API:

GET
https://short.beta7.dev/api/v1/domains

Ejemplo de solicitud:

curl --location --request GET 'https://short.beta7.dev/api/v1/domains' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parámetro
Tipo
Descripción
search
opcional string
Consulta de búsqueda.
search_by
opcional string
Buscar. Los valores posibles son :: valores. Predeterminado a :: valor.
sort_by
opcional string
Ordenar por. Los valores posibles son :: valores. Predeterminado a :: valor.
sort
opcional string
Clasificar. Los valores posibles son :: valores. Predeterminado a :: valor.
per_page
opcional integer
Resultados por página. Los valores posibles son :: valores. Predeterminado a :: valor.
Espectáculo

Punto final de la API:

GET
https://short.beta7.dev/api/v1/domains/{id}

Ejemplo de solicitud:

curl --location --request GET 'https://short.beta7.dev/api/v1/domains/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Almacenar

Punto final de la API:

POST
https://short.beta7.dev/api/v1/domains

Ejemplo de solicitud:

curl --location --request POST 'https://short.beta7.dev/api/v1/domains' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}'
Parámetro
Tipo
Descripción
name
requerido string
Nombre.
index_page
opcional string
URL de índice personalizado.
not_found_page
opcional string
URL personalizada 404.
Actualizar

Punto final de la API:

PUT PATCH
https://short.beta7.dev/api/v1/domains/{id}

Ejemplo de solicitud:

curl --location --request PUT 'https://short.beta7.dev/api/v1/domains/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parámetro
Tipo
Descripción
index_page
opcional string
URL de índice personalizado.
not_found_page
opcional string
URL personalizada 404.
Borrar

Punto final de la API:

DELETE
https://short.beta7.dev/api/v1/domains/{id}

Ejemplo de solicitud:

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