{
  "name": "rr-api",
  "title": "RR Registry Management API",
  "version": "1.0.0",
  "basePath": "/api/v1",
  "auth": "Authorization: Bearer <api_token | user token>  nebo  Basic <user:password>",
  "operations": [
    {
      "id": "status",
      "group": "system",
      "method": "GET",
      "path": "/status",
      "auth": "none",
      "summary": "Stav serveru, verze, statistiky"
    },
    {
      "id": "getSpec",
      "group": "system",
      "method": "GET",
      "path": "/spec",
      "auth": "none",
      "summary": "Specifikace API (z ní se generují klientské knihovny)"
    },
    {
      "id": "listClients",
      "group": "system",
      "method": "GET",
      "path": "/clients",
      "auth": "none",
      "summary": "Seznam klientských balíčků ke stažení"
    },
    {
      "id": "rebuildClients",
      "group": "system",
      "method": "POST",
      "path": "/clients/rebuild",
      "auth": "admin",
      "summary": "Znovu vygenerovat klientské knihovny a publikovat je do registru"
    },
    {
      "id": "getLogs",
      "group": "system",
      "method": "GET",
      "path": "/logs",
      "auth": "admin",
      "query": [
        "limit",
        "type"
      ],
      "summary": "Poslední požadavky a audit log"
    },
    {
      "id": "listPlugins",
      "group": "system",
      "method": "GET",
      "path": "/plugins",
      "auth": "admin",
      "summary": "Dostupné a zapnuté pluginy"
    },
    {
      "id": "listTasks",
      "group": "system",
      "method": "GET",
      "path": "/tasks",
      "auth": "admin",
      "summary": "Naplánované úlohy (zrcadla, čištění, cache)"
    },
    {
      "id": "runTask",
      "group": "system",
      "method": "POST",
      "path": "/tasks/:id/run",
      "auth": "admin",
      "summary": "Spustit úlohu hned"
    },
    {
      "id": "login",
      "group": "auth",
      "method": "POST",
      "path": "/auth/login",
      "auth": "none",
      "body": "json",
      "summary": "Přihlášení jménem a heslem -> token {username, password}"
    },
    {
      "id": "logout",
      "group": "auth",
      "method": "POST",
      "path": "/auth/logout",
      "auth": "user",
      "summary": "Zneplatní aktuální token"
    },
    {
      "id": "whoami",
      "group": "auth",
      "method": "GET",
      "path": "/auth/whoami",
      "auth": "user",
      "summary": "Informace o přihlášeném uživateli"
    },
    {
      "id": "listSshKeys",
      "group": "auth",
      "method": "GET",
      "path": "/user/keys",
      "auth": "user",
      "summary": "SSH klíče přihlášeného uživatele (admin: ?user=jméno nebo ?user=* pro všechny)",
      "query": [
        "user"
      ]
    },
    {
      "id": "addSshKey",
      "group": "auth",
      "method": "POST",
      "path": "/user/keys",
      "auth": "user",
      "summary": "Přidat SSH klíč {title, key} (ssh-ed25519, ecdsa-sha2-*, ssh-rsa)",
      "body": "json"
    },
    {
      "id": "deleteSshKey",
      "group": "auth",
      "method": "DELETE",
      "path": "/user/keys/:id",
      "auth": "user",
      "summary": "Odebrat SSH klíč"
    },
    {
      "id": "listRepos",
      "group": "repos",
      "method": "GET",
      "path": "/repos",
      "auth": "read",
      "summary": "Seznam repozitářů"
    },
    {
      "id": "createRepo",
      "group": "repos",
      "method": "POST",
      "path": "/repos",
      "auth": "admin",
      "body": "json",
      "summary": "Vytvořit repozitář {name, type: npm|generic|docker|git|group, description, public, allowPublish, quotaMb, immutable, acl, cleanup, members, deployTo, autoCreate}"
    },
    {
      "id": "getRepo",
      "group": "repos",
      "method": "GET",
      "path": "/repos/:repo",
      "auth": "read",
      "summary": "Detail repozitáře"
    },
    {
      "id": "updateRepo",
      "group": "repos",
      "method": "PUT",
      "path": "/repos/:repo",
      "auth": "admin",
      "body": "json",
      "summary": "Upravit repozitář {description, public, allowPublish, quotaMb, immutable, acl: {uživatel: none|read|publish}, cleanup: {enabled, maxVersions, maxAgeDays, prereleaseOnly, pattern, intervalHours}, members, deployTo, autoCreate} · browser: vzhled veřejného prohlížeče"
    },
    {
      "id": "getRepoBrowser",
      "group": "repos",
      "method": "GET",
      "path": "/repos/:repo/browser",
      "auth": "read",
      "summary": "Veřejný prohlížeč repozitáře: vzhled (browser), volby editoru a veřejné adresy; změna přes updateRepo {browser: {...}}"
    },
    {
      "id": "deleteRepo",
      "group": "repos",
      "method": "DELETE",
      "path": "/repos/:repo",
      "auth": "admin",
      "query": [
        "purge"
      ],
      "summary": "Smazat repozitář (purge=1 smaže i soubory)"
    },
    {
      "id": "runCleanup",
      "group": "repos",
      "method": "POST",
      "path": "/repos/:repo/cleanup",
      "auth": "admin",
      "summary": "Spustit čištění dle pravidel retence {dryRun, policy?: {maxVersions, maxAgeDays, prereleaseOnly, pattern}}",
      "body": "json"
    },
    {
      "id": "getRepoStats",
      "group": "repos",
      "method": "GET",
      "path": "/repos/:repo/stats",
      "auth": "read",
      "summary": "Statistiky stahování repozitáře (celkem, nejstahovanější, posledních 30 dní)",
      "query": [
        "top"
      ]
    },
    {
      "id": "listPackages",
      "group": "packages",
      "method": "GET",
      "path": "/repos/:repo/packages",
      "auth": "read",
      "query": [
        "q"
      ],
      "summary": "Balíčky v repozitáři"
    },
    {
      "id": "uploadPackage",
      "group": "packages",
      "method": "POST",
      "path": "/repos/:repo/packages",
      "auth": "publish",
      "body": "binary",
      "query": [
        "tag"
      ],
      "summary": "Publikovat balíček z .tgz souboru"
    },
    {
      "id": "getPackage",
      "group": "packages",
      "method": "GET",
      "path": "/repos/:repo/packages/:pkg",
      "auth": "read",
      "summary": "Detail balíčku (packument)"
    },
    {
      "id": "deletePackage",
      "group": "packages",
      "method": "DELETE",
      "path": "/repos/:repo/packages/:pkg",
      "auth": "publish",
      "summary": "Smazat balíček (všechny verze)"
    },
    {
      "id": "deleteVersion",
      "group": "packages",
      "method": "DELETE",
      "path": "/repos/:repo/packages/:pkg/versions/:version",
      "auth": "publish",
      "summary": "Smazat verzi balíčku"
    },
    {
      "id": "downloadTarball",
      "group": "packages",
      "method": "GET",
      "path": "/repos/:repo/packages/:pkg/versions/:version/tarball",
      "auth": "read",
      "response": "binary",
      "summary": "Stáhnout .tgz dané verze"
    },
    {
      "id": "deprecateVersion",
      "group": "packages",
      "method": "PUT",
      "path": "/repos/:repo/packages/:pkg/versions/:version/deprecate",
      "auth": "publish",
      "body": "json",
      "summary": "Označit verzi jako zastaralou {message} (verze * = všechny)"
    },
    {
      "id": "setDistTag",
      "group": "packages",
      "method": "PUT",
      "path": "/repos/:repo/packages/:pkg/dist-tags/:tag",
      "auth": "publish",
      "body": "json",
      "summary": "Nastavit dist-tag {version}"
    },
    {
      "id": "deleteDistTag",
      "group": "packages",
      "method": "DELETE",
      "path": "/repos/:repo/packages/:pkg/dist-tags/:tag",
      "auth": "publish",
      "summary": "Smazat dist-tag"
    },
    {
      "id": "getOwners",
      "group": "packages",
      "method": "GET",
      "path": "/repos/:repo/owners",
      "auth": "read",
      "query": [
        "item"
      ],
      "summary": "Vlastník a správci položky: npm balíček, docker image nebo položka nejvyšší úrovně generic repozitáře {owner, maintainers, write}"
    },
    {
      "id": "setOwners",
      "group": "packages",
      "method": "PUT",
      "path": "/repos/:repo/owners",
      "auth": "publish",
      "body": "json",
      "summary": "Nastavit / převést vlastníka a správce položky {item, owner, maintainers: [jména]} (administrátor; vlastník a u npm i správci)"
    },
    {
      "id": "search",
      "group": "packages",
      "method": "GET",
      "path": "/search",
      "auth": "read",
      "query": [
        "q",
        "repo",
        "size"
      ],
      "summary": "Hledat balíčky ve všech npm repozitářích"
    },
    {
      "id": "tree",
      "group": "files",
      "method": "GET",
      "path": "/repos/:repo/tree",
      "auth": "read",
      "query": [
        "path",
        "depth"
      ],
      "summary": "Strom adresářů a souborů repozitáře"
    },
    {
      "id": "stat",
      "group": "files",
      "method": "GET",
      "path": "/repos/:repo/stat",
      "auth": "read",
      "query": [
        "path"
      ],
      "summary": "Informace o souboru/adresáři"
    },
    {
      "id": "readFile",
      "group": "files",
      "method": "GET",
      "path": "/repos/:repo/files",
      "auth": "read",
      "query": [
        "path"
      ],
      "response": "binary",
      "summary": "Obsah souboru"
    },
    {
      "id": "writeFile",
      "group": "files",
      "method": "PUT",
      "path": "/repos/:repo/files",
      "auth": "publish",
      "query": [
        "path"
      ],
      "body": "binary",
      "summary": "Nahrát / přepsat soubor (publisher jen ve svých položkách generic repozitáře)"
    },
    {
      "id": "deleteFile",
      "group": "files",
      "method": "DELETE",
      "path": "/repos/:repo/files",
      "auth": "publish",
      "query": [
        "path"
      ],
      "summary": "Smazat soubor nebo adresář (publisher jen ve svých položkách generic repozitáře)"
    },
    {
      "id": "mkdir",
      "group": "files",
      "method": "POST",
      "path": "/repos/:repo/dirs",
      "auth": "publish",
      "query": [
        "path"
      ],
      "summary": "Vytvořit adresář (publisher jen ve svých položkách generic repozitáře)"
    },
    {
      "id": "listImages",
      "group": "docker",
      "method": "GET",
      "path": "/repos/:repo/images",
      "auth": "read",
      "summary": "Docker image v repozitáři {name, tags, size, updated}"
    },
    {
      "id": "listImageTags",
      "group": "docker",
      "method": "GET",
      "path": "/repos/:repo/images/:image/tags",
      "auth": "read",
      "summary": "Tagy image {tag, digest, mediaType, size, created} (název image URL-enkódovaný, např. agentconf%2Fnode)"
    },
    {
      "id": "deleteImageTag",
      "group": "docker",
      "method": "DELETE",
      "path": "/repos/:repo/images/:image/tags/:tag",
      "auth": "publish",
      "summary": "Smazat tag image (data uvolní garbage collection)"
    },
    {
      "id": "dockerGc",
      "group": "docker",
      "method": "POST",
      "path": "/repos/:repo/gc",
      "auth": "admin",
      "body": "json",
      "summary": "Garbage collection docker repozitáře {untagged: smazat i neotagované manifesty}"
    },
    {
      "id": "listGitRepos",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git",
      "auth": "read",
      "summary": "Git repozitáře v repozitáři typu git",
      "query": [
        "q"
      ]
    },
    {
      "id": "createGitRepo",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git",
      "auth": "publish",
      "summary": "Vytvořit git repozitář {name, description, defaultBranch, visibility: public|private, readme, gitignore, license} nebo importovat/zrcadlit (jen admin) {importUrl, mirror, interval, ttl, token, username}",
      "body": "json"
    },
    {
      "id": "githubImport",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/github-import",
      "auth": "admin",
      "summary": "Hromadný import / zrcadlení repozitářů z GitHubu {owner, token, kind: auto|user|org|mine, mirror, interval, filter, includeForks, includeArchived, limit, prefix}",
      "body": "json"
    },
    {
      "id": "getGitRepo",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name",
      "auth": "read",
      "summary": "Detail git repozitáře (větve, tagy, zrcadla, URL pro klonování)"
    },
    {
      "id": "updateGitRepo",
      "group": "git",
      "method": "PUT",
      "path": "/repos/:repo/git/:name",
      "auth": "publish",
      "summary": "Upravit git repozitář {description, defaultBranch, protectedBranches, mirror: {url, token, interval, ttl, enabled} | null} – správce repozitáře (vlastník); zrcadlení jen admin",
      "body": "json"
    },
    {
      "id": "deleteGitRepo",
      "group": "git",
      "method": "DELETE",
      "path": "/repos/:repo/git/:name",
      "auth": "publish",
      "summary": "Smazat git repozitář (správce repozitáře – vlastník nebo admin)"
    },
    {
      "id": "gitCommits",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/commits",
      "auth": "read",
      "summary": "Historie commitů",
      "query": [
        "ref",
        "limit",
        "path"
      ]
    },
    {
      "id": "gitTree",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/tree",
      "auth": "read",
      "summary": "Obsah adresáře ve větvi/tagu/commitu",
      "query": [
        "ref",
        "path"
      ]
    },
    {
      "id": "gitBlob",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/blob",
      "auth": "read",
      "summary": "Obsah souboru ve větvi/tagu/commitu",
      "query": [
        "ref",
        "path"
      ],
      "response": "binary"
    },
    {
      "id": "gitArchive",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/archive",
      "auth": "read",
      "summary": "Stáhnout archiv (tar.gz/zip) větve/tagu",
      "query": [
        "ref",
        "format"
      ],
      "response": "binary"
    },
    {
      "id": "gitSync",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/sync",
      "auth": "publish",
      "summary": "Synchronizovat zrcadla hned {direction: pull|push|both}",
      "body": "json"
    },
    {
      "id": "addGitPushMirror",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/push-mirrors",
      "auth": "admin",
      "summary": "Přidat push zrcadlo {url, token, username, mode: mirror|branches, createMissing, private}",
      "body": "json"
    },
    {
      "id": "deleteGitPushMirror",
      "group": "git",
      "method": "DELETE",
      "path": "/repos/:repo/git/:name/push-mirrors/:id",
      "auth": "admin",
      "summary": "Odebrat push zrcadlo"
    },
    {
      "id": "listGitBranches",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/branches",
      "auth": "read",
      "summary": "Větve ve tvaru GitHubu [{name, commit: {sha}, protected}]; ?detailed=1 – s posledním commitem, výchozí, ahead/behind",
      "query": [
        "detailed"
      ]
    },
    {
      "id": "listGitPulls",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/pulls",
      "auth": "read",
      "summary": "Pull requesty (nejnovější první); head může být „owner:větev“",
      "query": [
        "state",
        "head",
        "base"
      ]
    },
    {
      "id": "createGitPull",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/pulls",
      "auth": "publish",
      "summary": "Vytvořit pull request {title, head, base, body, draft} (422 když větev neexistuje nebo head = base)",
      "body": "json"
    },
    {
      "id": "getGitPull",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/pulls/:number",
      "auth": "read",
      "summary": "Detail pull requestu včetně mergeable / mergeable_state (clean|dirty|unknown) spočítaného z aktuálních větví"
    },
    {
      "id": "updateGitPull",
      "group": "git",
      "method": "PATCH",
      "path": "/repos/:repo/git/:name/pulls/:number",
      "auth": "publish",
      "summary": "Upravit pull request {title, body, state: open|closed, base, draft}",
      "body": "json"
    },
    {
      "id": "mergeGitPull",
      "group": "git",
      "method": "PUT",
      "path": "/repos/:repo/git/:name/pulls/:number/merge",
      "auth": "publish",
      "summary": "Sloučit pull request {merge_method: merge|squash|rebase, commit_title, commit_message, sha} → {merged, sha, message}; 405 konflikt/zavřený, 409 základní větev se změnila",
      "body": "json"
    },
    {
      "id": "listGitPullComments",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/pulls/:number/comments",
      "auth": "read",
      "summary": "Komentáře pull requestu (alias …/issues/:number/comments)"
    },
    {
      "id": "createGitPullComment",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/pulls/:number/comments",
      "auth": "publish",
      "summary": "Přidat komentář k pull requestu {body}",
      "body": "json"
    },
    {
      "id": "listGitIssues",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/issues",
      "auth": "read",
      "summary": "Issues (bez pull requestů, nejnovější první); labels=a,b – musí mít všechny",
      "query": [
        "state",
        "labels"
      ]
    },
    {
      "id": "createGitIssue",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/issues",
      "auth": "publish",
      "summary": "Vytvořit issue {title, body, labels: [..]}",
      "body": "json"
    },
    {
      "id": "getGitIssue",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/issues/:number",
      "auth": "read",
      "summary": "Detail issue (funguje i pro číslo pull requestu)"
    },
    {
      "id": "updateGitIssue",
      "group": "git",
      "method": "PATCH",
      "path": "/repos/:repo/git/:name/issues/:number",
      "auth": "publish",
      "summary": "Upravit issue nebo pull request {title, body, state: open|closed, labels}",
      "body": "json"
    },
    {
      "id": "listGitIssueComments",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/issues/:number/comments",
      "auth": "read",
      "summary": "Komentáře issue nebo pull requestu"
    },
    {
      "id": "createGitIssueComment",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/issues/:number/comments",
      "auth": "publish",
      "summary": "Přidat komentář k issue nebo pull requestu {body}",
      "body": "json"
    },
    {
      "id": "gitTemplates",
      "group": "git",
      "method": "GET",
      "path": "/git/templates",
      "auth": "none",
      "summary": "Šablony pro nový git repozitář: názvy .gitignore a licencí, nebo obsah jedné (?gitignore=Node | ?license=MIT&holder=jméno)",
      "query": [
        "gitignore",
        "license",
        "holder"
      ]
    },
    {
      "id": "moveGitRepo",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/move",
      "auth": "publish",
      "summary": "Přejmenovat nebo přesunout git repozitář {name, repo} – staré URL dál fungují (přesměrování)",
      "body": "json"
    },
    {
      "id": "setGitAccess",
      "group": "git",
      "method": "PUT",
      "path": "/repos/:repo/git/:name/access",
      "auth": "publish",
      "summary": "Viditelnost a oprávnění {visibility: public|private, owner, collaborators: {user: read|write|admin}}",
      "body": "json"
    },
    {
      "id": "gitCommit",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/commits/:sha",
      "auth": "read",
      "summary": "Detail commitu se změněnými soubory a patchem"
    },
    {
      "id": "createGitBranch",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/branches",
      "auth": "publish",
      "summary": "Vytvořit větev {name, from}",
      "body": "json"
    },
    {
      "id": "updateGitBranch",
      "group": "git",
      "method": "PATCH",
      "path": "/repos/:repo/git/:name/branches/:branch",
      "auth": "publish",
      "summary": "Přejmenovat větev / nastavit jako výchozí / chránit {name, default, protected}",
      "body": "json"
    },
    {
      "id": "deleteGitBranch",
      "group": "git",
      "method": "DELETE",
      "path": "/repos/:repo/git/:name/branches/:branch",
      "auth": "publish",
      "summary": "Smazat větev (ne výchozí ani chráněnou)"
    },
    {
      "id": "listGitTags",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/tags",
      "auth": "read",
      "summary": "Tagy (anotované i lehké) [{name, commit, annotated, tagger, date, message}]"
    },
    {
      "id": "createGitTag",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/tags",
      "auth": "publish",
      "summary": "Vytvořit tag {tag, ref, message} – se zprávou anotovaný",
      "body": "json"
    },
    {
      "id": "deleteGitTag",
      "group": "git",
      "method": "DELETE",
      "path": "/repos/:repo/git/:name/tags/:tag",
      "auth": "publish",
      "summary": "Smazat tag"
    },
    {
      "id": "listGitReleases",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/releases",
      "auth": "read",
      "summary": "Releases (nejnovější první, koncepty jen pro zapisující)"
    },
    {
      "id": "createGitRelease",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/releases",
      "auth": "publish",
      "summary": "Vytvořit release {tag_name, target_commitish, name, body, draft, prerelease, generate_release_notes}",
      "body": "json"
    },
    {
      "id": "getGitRelease",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/releases/:id",
      "auth": "read",
      "summary": "Detail release (id nebo „latest“)"
    },
    {
      "id": "getGitReleaseByTag",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/releases/tags/:tag",
      "auth": "read",
      "summary": "Release podle tagu"
    },
    {
      "id": "updateGitRelease",
      "group": "git",
      "method": "PATCH",
      "path": "/repos/:repo/git/:name/releases/:id",
      "auth": "publish",
      "summary": "Upravit release {tag_name, target_commitish, name, body, draft, prerelease}",
      "body": "json"
    },
    {
      "id": "deleteGitRelease",
      "group": "git",
      "method": "DELETE",
      "path": "/repos/:repo/git/:name/releases/:id",
      "auth": "publish",
      "summary": "Smazat release (tag zůstane)"
    },
    {
      "id": "uploadGitReleaseAsset",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/releases/:id/assets",
      "auth": "publish",
      "summary": "Nahrát soubor k release (?name=soubor&label=popis)",
      "body": "binary",
      "query": [
        "name",
        "label"
      ]
    },
    {
      "id": "downloadGitReleaseAsset",
      "group": "git",
      "method": "GET",
      "path": "/repos/:repo/git/:name/releases/assets/:asset/download",
      "auth": "read",
      "summary": "Stáhnout soubor release",
      "response": "binary"
    },
    {
      "id": "deleteGitReleaseAsset",
      "group": "git",
      "method": "DELETE",
      "path": "/repos/:repo/git/:name/releases/assets/:asset",
      "auth": "publish",
      "summary": "Smazat soubor release"
    },
    {
      "id": "putGitFile",
      "group": "git",
      "method": "PUT",
      "path": "/repos/:repo/git/:name/contents",
      "auth": "publish",
      "summary": "Vytvořit / upravit soubor commitem {path, content, encoding: utf8|base64, message, branch, sha, create}",
      "body": "json"
    },
    {
      "id": "deleteGitFile",
      "group": "git",
      "method": "DELETE",
      "path": "/repos/:repo/git/:name/contents",
      "auth": "publish",
      "summary": "Smazat soubor nebo adresář commitem (?path, branch, message, sha)",
      "query": [
        "path",
        "branch",
        "message",
        "sha"
      ]
    },
    {
      "id": "commitGitFiles",
      "group": "git",
      "method": "POST",
      "path": "/repos/:repo/git/:name/commit-files",
      "auth": "publish",
      "summary": "Commit více souborů najednou (nahrávání) {branch, from, message, files: [{path, content, encoding}], deletes: [path]}",
      "body": "json"
    },
    {
      "id": "listRoutes",
      "group": "routes",
      "method": "GET",
      "path": "/routes",
      "auth": "admin",
      "summary": "Pravidla směrování (routing plugin)"
    },
    {
      "id": "createRoute",
      "group": "routes",
      "method": "POST",
      "path": "/routes",
      "auth": "admin",
      "body": "json",
      "summary": "Přidat pravidlo {name, when: always|notfound|push, matchOn, matchType, pattern, repo, repoType, key, target, token, cacheTtl, replicateDeletes, gitMode, createMissing, ...}"
    },
    {
      "id": "getRoute",
      "group": "routes",
      "method": "GET",
      "path": "/routes/:id",
      "auth": "admin",
      "summary": "Detail pravidla"
    },
    {
      "id": "updateRoute",
      "group": "routes",
      "method": "PUT",
      "path": "/routes/:id",
      "auth": "admin",
      "body": "json",
      "summary": "Upravit pravidlo"
    },
    {
      "id": "deleteRoute",
      "group": "routes",
      "method": "DELETE",
      "path": "/routes/:id",
      "auth": "admin",
      "summary": "Smazat pravidlo"
    },
    {
      "id": "testRoute",
      "group": "routes",
      "method": "POST",
      "path": "/routes/test",
      "auth": "admin",
      "body": "json",
      "summary": "Otestovat, které pravidlo odpovídá {repo, path, key, method}"
    },
    {
      "id": "listReplications",
      "group": "routes",
      "method": "GET",
      "path": "/replications",
      "auth": "admin",
      "summary": "Fronta a historie replikací (pravidla when=push)",
      "query": [
        "limit",
        "status"
      ]
    },
    {
      "id": "retryReplication",
      "group": "routes",
      "method": "POST",
      "path": "/replications/:id/retry",
      "auth": "admin",
      "summary": "Znovu spustit replikaci"
    },
    {
      "id": "cacheStats",
      "group": "cache",
      "method": "GET",
      "path": "/cache",
      "auth": "admin",
      "summary": "Statistiky cache"
    },
    {
      "id": "listCache",
      "group": "cache",
      "method": "GET",
      "path": "/cache/entries",
      "auth": "admin",
      "query": [
        "q",
        "limit"
      ],
      "summary": "Položky v cache"
    },
    {
      "id": "purgeCache",
      "group": "cache",
      "method": "DELETE",
      "path": "/cache",
      "auth": "admin",
      "query": [
        "expired",
        "q"
      ],
      "summary": "Vyčistit cache (vše / expired=1 / q=filtr)"
    },
    {
      "id": "deleteCacheEntry",
      "group": "cache",
      "method": "DELETE",
      "path": "/cache/entries/:key",
      "auth": "admin",
      "summary": "Smazat položku cache"
    },
    {
      "id": "listWebhooks",
      "group": "webhooks",
      "method": "GET",
      "path": "/webhooks",
      "auth": "admin",
      "summary": "Webhooky"
    },
    {
      "id": "createWebhook",
      "group": "webhooks",
      "method": "POST",
      "path": "/webhooks",
      "auth": "admin",
      "summary": "Vytvořit webhook {name, url, events: [*|npm.*|git.push|...], repos, secret, format: json|slack|discord, headers, enabled}",
      "body": "json"
    },
    {
      "id": "updateWebhook",
      "group": "webhooks",
      "method": "PUT",
      "path": "/webhooks/:id",
      "auth": "admin",
      "summary": "Upravit webhook",
      "body": "json"
    },
    {
      "id": "deleteWebhook",
      "group": "webhooks",
      "method": "DELETE",
      "path": "/webhooks/:id",
      "auth": "admin",
      "summary": "Smazat webhook"
    },
    {
      "id": "testWebhook",
      "group": "webhooks",
      "method": "POST",
      "path": "/webhooks/:id/test",
      "auth": "admin",
      "summary": "Odeslat testovací událost (ping)"
    },
    {
      "id": "listWebhookDeliveries",
      "group": "webhooks",
      "method": "GET",
      "path": "/webhooks/deliveries",
      "auth": "admin",
      "summary": "Historie doručení webhooků",
      "query": [
        "id",
        "limit"
      ]
    },
    {
      "id": "listEvents",
      "group": "webhooks",
      "method": "GET",
      "path": "/events",
      "auth": "admin",
      "summary": "Poslední události a seznam typů událostí",
      "query": [
        "limit",
        "type"
      ]
    },
    {
      "id": "listUsers",
      "group": "users",
      "method": "GET",
      "path": "/users",
      "auth": "admin",
      "summary": "Uživatelé"
    },
    {
      "id": "createUser",
      "group": "users",
      "method": "POST",
      "path": "/users",
      "auth": "admin",
      "body": "json",
      "summary": "Vytvořit uživatele {name, password, email, role: admin|publisher|reader}"
    },
    {
      "id": "updateUser",
      "group": "users",
      "method": "PUT",
      "path": "/users/:name",
      "auth": "admin",
      "body": "json",
      "summary": "Upravit uživatele {password, email, role}"
    },
    {
      "id": "deleteUser",
      "group": "users",
      "method": "DELETE",
      "path": "/users/:name",
      "auth": "admin",
      "summary": "Smazat uživatele"
    },
    {
      "id": "listTokens",
      "group": "tokens",
      "method": "GET",
      "path": "/tokens",
      "auth": "user",
      "summary": "Tokeny (admin vidí všechny)"
    },
    {
      "id": "createToken",
      "group": "tokens",
      "method": "POST",
      "path": "/tokens",
      "auth": "user",
      "body": "json",
      "summary": "Vytvořit token {name, readonly, user (jen admin), ttl}"
    },
    {
      "id": "revokeToken",
      "group": "tokens",
      "method": "DELETE",
      "path": "/tokens/:id",
      "auth": "user",
      "summary": "Zneplatnit token"
    },
    {
      "id": "getSettings",
      "group": "settings",
      "method": "GET",
      "path": "/settings",
      "auth": "admin",
      "summary": "Nastavení serveru"
    },
    {
      "id": "updateSettings",
      "group": "settings",
      "method": "PUT",
      "path": "/settings",
      "auth": "admin",
      "body": "json",
      "summary": "Změnit nastavení {defaultRepo, dockerRepo, gitRepo, anonymousRead, allowRegistration, cacheTtl, tarballTtl, title, plugins}"
    },
    {
      "id": "transferSections",
      "group": "transfer",
      "method": "GET",
      "path": "/transfer/sections",
      "auth": "admin",
      "summary": "Části, které lze exportovat (sekce, položky, velikosti) v pořadí exportu/importu"
    },
    {
      "id": "listExports",
      "group": "transfer",
      "method": "GET",
      "path": "/exports",
      "auth": "admin",
      "summary": "Vytvořené exporty"
    },
    {
      "id": "createExport",
      "group": "transfer",
      "method": "POST",
      "path": "/exports",
      "auth": "admin",
      "summary": "Vytvořit šifrovaný export {passphrase, sections: [server, secret, plugins, users, tokens, repos, content, routes, webhooks, settings, stats, audit, cache], items: {sekce: [id]}, note}",
      "body": "json"
    },
    {
      "id": "downloadExport",
      "group": "transfer",
      "method": "GET",
      "path": "/exports/:id/download",
      "auth": "admin",
      "summary": "Stáhnout soubor exportu (.rrx)",
      "response": "binary"
    },
    {
      "id": "deleteExport",
      "group": "transfer",
      "method": "DELETE",
      "path": "/exports/:id",
      "auth": "admin",
      "summary": "Smazat export"
    },
    {
      "id": "listImports",
      "group": "transfer",
      "method": "GET",
      "path": "/imports",
      "auth": "admin",
      "summary": "Rozpracované a dokončené importy"
    },
    {
      "id": "uploadImport",
      "group": "transfer",
      "method": "POST",
      "path": "/imports",
      "auth": "admin",
      "summary": "Nahrát soubor exportu (.rrx) k importu",
      "body": "binary"
    },
    {
      "id": "remoteImport",
      "group": "transfer",
      "method": "POST",
      "path": "/imports/remote",
      "auth": "admin",
      "summary": "Vzdálený import z URL {url, mode: file|server, token, passphrase, sections} – operace je nutné schválit",
      "body": "json"
    },
    {
      "id": "getImport",
      "group": "transfer",
      "method": "GET",
      "path": "/imports/:id",
      "auth": "admin",
      "summary": "Stav importu a plán operací (pořadí, akce, cíle, závislosti, schválení)"
    },
    {
      "id": "unlockImport",
      "group": "transfer",
      "method": "POST",
      "path": "/imports/:id/unlock",
      "auth": "admin",
      "summary": "Odemknout import heslem a sestavit plán {passphrase}",
      "body": "json"
    },
    {
      "id": "updateImport",
      "group": "transfer",
      "method": "PUT",
      "path": "/imports/:id",
      "auth": "admin",
      "summary": "Výběr a schválení operací {select, approve, revoke, includeDependencies, conflict, overrides, renames, target}",
      "body": "json"
    },
    {
      "id": "runImport",
      "group": "transfer",
      "method": "POST",
      "path": "/imports/:id/run",
      "auth": "admin",
      "summary": "Spustit import vybraných a schválených operací {confirmPaths: true}",
      "body": "json"
    },
    {
      "id": "deleteImport",
      "group": "transfer",
      "method": "DELETE",
      "path": "/imports/:id",
      "auth": "admin",
      "summary": "Zahodit import (smaže dočasná data)"
    }
  ]
}
