Espacios

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/spaces

Ejemplo de solicitud:

curl --location --request GET 'https://short.beta7.dev/api/v1/spaces' \
--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/spaces/{id}

Ejemplo de solicitud:

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

Punto final de la API:

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

Ejemplo de solicitud:

curl --location --request POST 'https://short.beta7.dev/api/v1/spaces' \
--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.
color
opcional integer
Color. Los valores posibles son :: valores. Predeterminado a :: valor.
Actualizar

Punto final de la API:

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

Ejemplo de solicitud:

curl --location --request PUT 'https://short.beta7.dev/api/v1/spaces/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parámetro
Tipo
Descripción
name
opcional string
Nombre.
color
opcional integer
Color. Los valores posibles son :: valores.
Borrar

Punto final de la API:

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

Ejemplo de solicitud:

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