Zum Inhalt springen
aYOUne
← Konfiguration API

Airfields

Singular: Airfield — Base-URL: https://config-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)

Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Beispiel-Response (aufgezeichnet) Beispiel

Eine echte, zuvor aufgezeichnete GET /:id-Antwort dieses Endpunkts — nicht der Live-Call oben. Sensible Felder sind maskiert.

{
  "payload": {
    "_id": "6ac9b2d82493408cc113c25b",
    "createdBy": "6045f4d25704710012485569",
    "shares": [],
    "createdAt": "2026-10-10T03:36:56.268Z",
    "updatedAt": "2026-10-10T03:36:56.268Z"
  },
  "meta": {
    "links": [
      {
        "rel": "self",
        "href": "https://config-api.ayoune.app/airfields/6ac9b2d82493408cc113c25b",
        "method": "get",
        "title": "GET",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "relations": [],
    "debugId": "6ac9b2d92493408cc113c2cd",
    "errors": [],
    "actions": [
      {
        "rel": "self",
        "action": "COPY",
        "title": "MODEL_AIRFIELD",
        "href": "https://api.ayoune.app/config/airfields/6ac9b2d82493408cc113c25b/copy",
        "method": "post",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      },
      {
        "rel": "self",
        "action": "DELETE",
        "title": "MODEL_AIRFIELD",
        "href": "https://api.ayoune.app/config/airfields/6ac9b2d82493408cc113c25b",
        "method": "delete",
        "types": [
          "application/json",
          "application/yaml",
          "text/csv"
        ]
      }
    ],
    "version": {
      "host": "2026.170.1",
      "core": "2026.368.0"
    },
    "rateLimit": {
      "limit": "10000",
      "remaining": "8996",
      "reset": "1791604919",
      "resetDate": "Sat Oct 10 2026"
    },
    "responseTime": 588.789329,
    "code": 200,
    "status": "success",
    "error": false
  }
}

Endpunkte

MethodePathBeschreibungRight
GET /airfields Liste mit Filtern/Paginierung config.airfields.view
GET /airfields/:id Einzelner Datensatz config.airfields.view
POST /airfields Neuen Datensatz erstellen config.airfields.new
PUT /airfields Datensatz aktualisieren config.airfields.edit
DELETE /airfields/:id Datensatz löschen config.airfields.delete

SDK

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

// Alle abrufen
const list = await ay.config.airfields.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.config.airfields.findById('OBJECT_ID').exec();

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

Weiterführend