Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix(docs): use summary instead of slug for webhooks api spec (#51088)

Paweł Gulbinowicz032c71c5bfa1
diff --git a/apps/docs/spec/sections/generateMgmtApiSections.cts b/apps/docs/spec/sections/generateMgmtApiSections.cts
index ecb55ed9063..ed2c225fd4f 100644
--- a/apps/docs/spec/sections/generateMgmtApiSections.cts
+++ b/apps/docs/spec/sections/generateMgmtApiSections.cts
@@ -56,7 +56,9 @@ function extractSectionsFromOpenApi(filePaths: string[], outputPath: string) {
const sectionCate = sections.find((i) => i.title === tag)
sectionCate?.items.push({
id: operationId,
- title: slugToTitle(operationId),
+ title: operationId.match(/^v\d+-(organizations-slug|projects-ref)-.+$/)
+ ? (methods[method].summary ?? slugToTitle(operationId))
+ : slugToTitle(operationId),
slug: operationId,
type: 'operation',
})