aYOUne
← Warehouse API

Docks

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

SDK

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

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

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

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

See also