← coding API
Repositories
Singular: Repository — Base-URL: https://coding-api.ayoune.app — Zugriff: CRUD — Maschinenlesbare Beschreibung (JSON · YAML)
Jetzt ausprobieren
beta
Response (live)
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": "6ac4c83b5846861d734a7f5f",
"_project": "6ab226ff497e7e1a34056763",
"provider": "bitbucket",
"workspace": "ayoune",
"repoSlug": "companion-demo-pipeline",
"repoURL": "https://bitbucket.org/ayoune/companion-demo-pipeline",
"repoFullName": "ayoune/companion-demo-pipeline",
"description": "",
"language": "",
"isPrivate": true,
"friendlyName": "",
"showOnDashboard": false,
"tags": [],
"_deployments": [],
"syncEnabled": true,
"syncError": "",
"defaultBranch": "master",
"localPath": "",
"localPathVerified": false,
"pipelineSuccessRate": 0,
"codeIndexingEnabled": false,
"docGenerationEnabled": false,
"createdBy": "5a76d07e2d8b3270ff6df587",
"foundationPins": [],
"branches": [],
"shares": [],
"createdAt": "2026-10-06T10:06:51.434Z",
"updatedAt": "2026-10-06T10:06:51.434Z"
},
"meta": {
"links": [
{
"rel": "self",
"href": "https://coding-api.ayoune.app/repositories/6ac4c83b5846861d734a7f5f",
"method": "get",
"title": "GET",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "Projects",
"title": "MODEL_PROJECT",
"href": "https://api.ayoune.app/pm/projects/6ab226ff497e7e1a34056763",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.projects"
}
],
"relations": [
{
"rel": "Projects",
"title": "MODEL_PROJECT",
"href": "https://api.ayoune.app/pm/projects",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.projects"
},
{
"rel": "Modules",
"title": "MODEL_MODULE",
"href": "https://api.ayoune.app/pm/modules",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.modules"
},
{
"rel": "Components",
"title": "MODEL_COMPONENT",
"href": "https://api.ayoune.app/pm/components",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "pm.components"
},
{
"rel": "WebReceivers",
"title": "MODEL_WEBRECEIVER",
"href": "https://api.ayoune.app/config/webreceivers",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.webreceivers"
},
{
"rel": "Checks",
"title": "MODEL_CHECK",
"href": "https://api.ayoune.app/monitoring/checks",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "monitoring.checks"
},
{
"rel": "MicroServices",
"title": "MODEL_MICROSERVICE",
"href": "https://api.ayoune.app/config/microservices",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.microservices"
},
{
"rel": "K8Clusters",
"title": "MODEL_K8CLUSTER",
"href": "https://api.ayoune.app/devops/k8clusters",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "devops.k8clusters"
},
{
"rel": "KnowledgeSources",
"title": "MODEL_KNOWLEDGESOURCE",
"href": "https://api.ayoune.app/ai/knowledgesources",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "ai.knowledgesources"
},
{
"rel": "Credentials",
"title": "MODEL_CREDENTIAL",
"href": "https://api.ayoune.app/config/credentials",
"method": "get",
"types": [
"application/json",
"application/yaml",
"text/csv"
],
"right": "config.credentials"
}
],
"debugId": "6ac9af4da9ff8bfc78d614b6",
"errors": [],
"actions": [
{
"rel": "self",
"action": "COPY",
"title": "MODEL_REPOSITORY",
"href": "https://api.ayoune.app/coding/repositories/6ac4c83b5846861d734a7f5f/copy",
"method": "post",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
},
{
"rel": "self",
"action": "DELETE",
"title": "MODEL_REPOSITORY",
"href": "https://api.ayoune.app/coding/repositories/6ac4c83b5846861d734a7f5f",
"method": "delete",
"types": [
"application/json",
"application/yaml",
"text/csv"
]
}
],
"version": {
"host": "2026.74.0",
"core": "2026.368.1"
},
"rateLimit": {
"limit": "10000",
"remaining": "9996",
"reset": "1791606110",
"resetDate": "Sat Oct 10 2026"
},
"responseTime": 19.256108,
"code": 200,
"status": "success",
"error": false
}
}
Endpunkte
| Methode | Path | Beschreibung | Right |
|---|---|---|---|
| GET | /repositories |
Liste mit Filtern/Paginierung | coding.repositories.view |
| GET | /repositories/:id |
Einzelner Datensatz | coding.repositories.view |
| POST | /repositories |
Neuen Datensatz erstellen | coding.repositories.new |
| PUT | /repositories |
Datensatz aktualisieren | coding.repositories.edit |
| DELETE | /repositories/:id |
Datensatz löschen | coding.repositories.delete |
SDK
import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');
// Alle abrufen
const list = await ay.coding.repositories.find().limit(10).exec();
// Einzelnen Datensatz
const one = await ay.coding.repositories.findById('OBJECT_ID').exec();
// Erstellen
const created = await ay.coding.repositories.create({ name: 'Foo' });