aYOUne
← Configuration API

EconomicEvents

Singular: EconomicEvent — 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 /economicevents List with filters/pagination config.economicevents.view
GET /economicevents/:id Single record config.economicevents.view
POST /economicevents Create new record config.economicevents.new
PUT /economicevents Update record config.economicevents.edit
DELETE /economicevents/:id Delete record config.economicevents.delete

SDK

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

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

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

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

See also