aYOUne
← CMS API

PostComments

Singular: PostComment — Base URL: https://cms-api.ayoune.app — Access: CRUD — Machine-readable spec (JSON · YAML)

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

SDK

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

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

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

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

See also