aYOUne
← CMS API

Images

Singular: Image — Base URL: https://cms-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 /images List with filters/pagination cms.images.view
GET /images/:id Single record cms.images.view
POST /images Create new record cms.images.new
PUT /images Update record cms.images.edit
DELETE /images/:id Delete record cms.images.delete

SDK

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

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

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

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

See also