Spaces

Anmerkungen
Experten level
Der API-Schlüssel sollte als Bearer-Token im Authorization-Header der Anfrage gesendet werden. Bekomme dein API Schlüssel.
Liste

API endpunkt:

GET
https://link.kroginski.de/api/v1/spaces

Beispiel anfordern:

curl --location --request GET 'https://link.kroginski.de/api/v1/spaces' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Typ
Beschreibung
search
optional string
Die Suchanfrage.
sort
optional string
Sortieren. Mögliche Werte sind: desc für absteigend, asc für Aufsteigend. Stadard zu: desc.
per_page
optional int
Ergebnisse pro Seite. Mögliche Werte sind: 10 zu 100. Stadard zu: 10.
Zeige

API endpunkt:

GET
https://link.kroginski.de/api/v1/spaces/{id}

Beispiel anfordern:

curl --location --request GET 'https://link.kroginski.de/api/v1/spaces/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
lagern

API endpunkt:

POST
https://link.kroginski.de/api/v1/spaces

Beispiel anfordern:

curl --location --request POST 'https://link.kroginski.de/api/v1/spaces' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
Parameter
Typ
Beschreibung
name
benötigt string
Der Speichername.
color
optional integer
Der Farbcode. Mögliche Werte sind: 1, 2, 3, 4, 5, 6. Stadard zu: 1.
Update

API endpunkt:

PUT PATCH
https://link.kroginski.de/api/v1/spaces/{id}

Beispiel anfordern:

curl --location --request PUT 'https://link.kroginski.de/api/v1/spaces/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
Parameter
Typ
Beschreibung
name
optional string
Der Speichername.
color
optional integer
Der Farbcode. Mögliche Werte sind: 1, 2, 3, 4, 5, 6.
Löschen

API endpunkt:

DELETE
https://link.kroginski.de/spaces/{id}/destroy

Beispiel anfordern:

curl --location --request DELETE 'https://link.kroginski.de/spaces/{id}/destroy' \
--header 'Authorization: Bearer {api_key}'