mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-07 16:35:48 +01:00
PAP-10287 document teams catalog routes
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
fa6e887792
commit
df100082e6
2 files changed
+19
No files matched your search
@@ -42,6 +42,7 @@ const apiPrefixes: Record<string, string> = {
|
||||
"secrets.ts": "/api",
|
||||
"sidebar-badges.ts": "/api",
|
||||
"sidebar-preferences.ts": "/api",
|
||||
"teams-catalog.ts": "/api",
|
||||
"user-profiles.ts": "/api",
|
||||
};
|
||||
|
||||
|
||||
@@ -871,6 +871,24 @@ registry.registerPath({
|
||||
responses: { 200: r.ok(), 400: r.badRequest, 401: r.unauthorized },
|
||||
});
|
||||
|
||||
// ─── Teams Catalog ──────────────────────────────────────────────────────────
|
||||
|
||||
for (const route of [
|
||||
["get", "/api/teams/catalog", "List catalog teams"],
|
||||
["get", "/api/teams/catalog/{catalogId}/files", "Get catalog team file"],
|
||||
["get", "/api/teams/catalog/{catalogId}", "Get catalog team"],
|
||||
["get", "/api/companies/{companyId}/teams/catalog/installed", "List installed catalog teams"],
|
||||
["post", "/api/companies/{companyId}/teams/catalog/{catalogId}/preview", "Preview catalog team install"],
|
||||
["post", "/api/companies/{companyId}/teams/catalog/{catalogId}/install", "Install catalog team"],
|
||||
] as const) {
|
||||
registerCurrentRoute({
|
||||
method: route[0],
|
||||
path: route[1],
|
||||
tags: ["teams"],
|
||||
summary: route[2],
|
||||
});
|
||||
}
|
||||
|
||||
// ─── Agents ──────────────────────────────────────────────────────────────────
|
||||
|
||||
registry.registerPath({
|
||||
|
||||
Reference in new issue
Block a user