aYOUne
← Configuration API

EditeurThemas

Singular: EditeurThema — Base URL: https://config-api.ayoune.app — Access: CRUD

play_circle Try it now beta

Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.

Endpoints

MethodPathDescriptionRight
GET /editeurthemas List with filters/pagination config.editeurthemas.view
GET /editeurthemas/:id Single record config.editeurthemas.view
POST /editeurthemas Create new record config.editeurthemas.new
PUT /editeurthemas Update record config.editeurthemas.edit
DELETE /editeurthemas/:id Delete record config.editeurthemas.delete

SDK

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

// List all
const list = await ay.config.editeurThemas.find().limit(10).exec();

// Single record
const one = await ay.config.editeurThemas.findById('OBJECT_ID').exec();

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

See also