aYOUne
← CMS API

Podcasts

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

SDK

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

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

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

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

See also