← Hub API
Glossaries
Singular: Glossary — Base URL: https://hub-api.ayoune.app — Access: CRUD
Try it now
beta
Response (live)
Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.
Endpoints
| Method | Path | Description | Right |
|---|---|---|---|
| GET | /glossaries |
List with filters/pagination | hub.glossaries.view |
| GET | /glossaries/:id |
Single record | hub.glossaries.view |
| POST | /glossaries |
Create new record | hub.glossaries.new |
| PUT | /glossaries |
Update record | hub.glossaries.edit |
| DELETE | /glossaries/:id |
Delete record | hub.glossaries.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// List all
const list = await ay.hub.glossaries.find().limit(10).exec();
// Single record
const one = await ay.hub.glossaries.findById('OBJECT_ID').exec();
// Create
const created = await ay.hub.glossaries.create({ name: 'Foo' });