aYOUne
← Configuration API

Streets

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

SDK

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

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

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

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

See also