aYOUne
← Konfiguration API

BusinessLocations

Singular: BusinessLocation — Base-URL: https://config-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

play_circle Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Endpunkte

MethodePathBeschreibungRight
GET /businesslocations Liste mit Filtern/Paginierung config.businesslocations.view
GET /businesslocations/:id Einzelner Datensatz config.businesslocations.view
POST /businesslocations Neuen Datensatz erstellen config.businesslocations.new
PUT /businesslocations Datensatz aktualisieren config.businesslocations.edit
DELETE /businesslocations/:id Datensatz löschen config.businesslocations.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.config.businessLocations.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.config.businessLocations.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.config.businessLocations.create({ name: 'Foo' });

Weiterführend