← Produktion API
CadTemplates
Singular: CadTemplate — Base-URL: https://production-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /cadtemplates |
Liste mit Filtern/Paginierung | production.cadtemplates.view |
| GET | /cadtemplates/:id |
Einzelner Datensatz | production.cadtemplates.view |
| POST | /cadtemplates |
Neuen Datensatz erstellen | production.cadtemplates.new |
| PUT | /cadtemplates |
Datensatz aktualisieren | production.cadtemplates.edit |
| DELETE | /cadtemplates/:id |
Datensatz löschen | production.cadtemplates.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.production.cadTemplates.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.production.cadTemplates.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.production.cadTemplates.create({ name: 'Foo' });