The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
api-docs: add examples if present
Iniana51a9aba671f
diff --git a/apps/reference/_api/usage.mdx b/apps/reference/_api/usage.mdxindex dff1b912aa3..f9aaa960c54 100644--- a/apps/reference/_api/usage.mdx+++ b/apps/reference/_api/usage.mdx@@ -430,6 +430,7 @@ GET https://api.supabase.com/v1/projects/{ref}/functions</span></h4>+<div class="method-list-item-description">Project ref</div>@@ -558,6 +559,7 @@ POST https://api.supabase.com/v1/projects/{ref}/functions</span></h4>+<div class="method-list-item-description">Project ref</div>@@ -713,6 +715,7 @@ GET https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}</span></h4>+<div class="method-list-item-description">Project ref</div>@@ -730,6 +733,7 @@ GET https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}</span></h4>+<div class="method-list-item-description">Function slug</div>@@ -858,6 +862,7 @@ PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}</span></h4>+<div class="method-list-item-description">Project ref</div>@@ -875,6 +880,7 @@ PATCH https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}</span></h4>+<div class="method-list-item-description">Function slug</div>@@ -1021,6 +1027,7 @@ DELETE https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}</span></h4>+<div class="method-list-item-description">Project ref</div>@@ -1038,6 +1045,7 @@ DELETE https://api.supabase.com/v1/projects/{ref}/functions/{function_slug}</span></h4>+<div class="method-list-item-description">Function slug</div>@@ -1115,6 +1123,7 @@ GET https://api.supabase.com/v1/projects/{ref}/secrets</span></h4>+<div class="method-list-item-description">Project ref</div>@@ -1215,6 +1224,7 @@ POST https://api.supabase.com/v1/projects/{ref}/secrets</span></h4>+<div class="method-list-item-description">Project ref</div>@@ -1318,6 +1328,7 @@ DELETE https://api.supabase.com/v1/projects/{ref}/secrets</span></h4>+<div class="method-list-item-description">Project ref</div>diff --git a/apps/reference/_storage/generated/usage.mdx b/apps/reference/_storage/generated/usage.mdxindex 31d4fae954e..19e38eeb77f 100644--- a/apps/reference/_storage/generated/usage.mdx+++ b/apps/reference/_storage/generated/usage.mdx@@ -51,6 +51,14 @@ DELETE /object/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -68,6 +76,14 @@ DELETE /object/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ folder/cat.png+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -92,6 +108,7 @@ DELETE /object/{bucketName}/{wildcard}</span></h4>+<div class="method-list-item-description"></div>@@ -206,6 +223,14 @@ PUT /object/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -223,6 +248,14 @@ PUT /object/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ folder/cat.png+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -247,6 +280,7 @@ PUT /object/{bucketName}/{wildcard}</span></h4>+<div class="method-list-item-description"></div>@@ -364,6 +398,14 @@ POST /object/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -381,6 +423,14 @@ POST /object/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ folder/cat.png+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -405,6 +455,7 @@ POST /object/{bucketName}/{wildcard}</span></h4>+<div class="method-list-item-description"></div>@@ -522,6 +573,14 @@ DELETE /object/{bucketName}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -546,6 +605,7 @@ DELETE /object/{bucketName}</span></h4>+<div class="method-list-item-description"></div>@@ -797,6 +857,14 @@ GET /object/authenticated/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -814,6 +882,14 @@ GET /object/authenticated/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ folder/cat.png+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -838,6 +914,7 @@ GET /object/authenticated/{bucketName}/{wildcard}</span></h4>+<div class="method-list-item-description"></div>@@ -926,6 +1003,14 @@ POST /object/sign/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -943,6 +1028,14 @@ POST /object/sign/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ folder/cat.png+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -967,6 +1060,7 @@ POST /object/sign/{bucketName}/{wildcard}</span></h4>+<div class="method-list-item-description"></div>@@ -1104,6 +1198,14 @@ GET /object/sign/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -1121,6 +1223,14 @@ GET /object/sign/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ folder/cat.png+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -1211,6 +1321,14 @@ POST /object/sign/{bucketName}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -1235,6 +1353,7 @@ POST /object/sign/{bucketName}</span></h4>+<div class="method-list-item-description"></div>@@ -1404,6 +1523,7 @@ POST /object/move</span></h4>+<div class="method-list-item-description"></div>@@ -1550,6 +1670,7 @@ POST /object/list/{bucketName}</span></h4>+<div class="method-list-item-description"></div>@@ -1574,6 +1695,7 @@ POST /object/list/{bucketName}</span></h4>+<div class="method-list-item-description"></div>@@ -1855,6 +1977,7 @@ POST /object/copy</span></h4>+<div class="method-list-item-description"></div>@@ -2001,6 +2124,14 @@ GET /object/public/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -2018,6 +2149,14 @@ GET /object/public/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ folder/cat.png+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -2116,6 +2255,7 @@ POST /bucket/</span></h4>+<div class="method-list-item-description"></div>@@ -2261,6 +2401,7 @@ GET /bucket/</span></h4>+<div class="method-list-item-description"></div>@@ -2423,6 +2564,14 @@ POST /bucket/{bucketId}/empty</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -2447,6 +2596,7 @@ POST /bucket/{bucketId}/empty</span></h4>+<div class="method-list-item-description"></div>@@ -2561,6 +2711,14 @@ GET /bucket/{bucketId}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -2585,6 +2743,7 @@ GET /bucket/{bucketId}</span></h4>+<div class="method-list-item-description"></div>@@ -2733,6 +2892,7 @@ PUT /bucket/{bucketId}</span></h4>+<div class="method-list-item-description"></div>@@ -2866,6 +3026,14 @@ DELETE /bucket/{bucketId}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -2890,6 +3058,7 @@ DELETE /bucket/{bucketId}</span></h4>+<div class="method-list-item-description"></div>@@ -3011,6 +3180,14 @@ GET /object/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ avatars+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -3028,6 +3205,14 @@ GET /object/{bucketName}/{wildcard}</span></h4>++ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ folder/cat.png+ </span>+ </h4>+<div class="method-list-item-description"></div>@@ -3052,6 +3237,7 @@ GET /object/{bucketName}/{wildcard}</span></h4>+<div class="method-list-item-description"></div>diff --git a/packages/generator/src/docs/templates/ApiTemplate.ts b/packages/generator/src/docs/templates/ApiTemplate.tsindex 7440d9c001d..cadb38583a1 100644--- a/packages/generator/src/docs/templates/ApiTemplate.ts+++ b/packages/generator/src/docs/templates/ApiTemplate.ts@@ -53,6 +53,14 @@ import TabItem from '@theme/TabItem';<%- parameter.type %></span></h4>+ <% if(parameter.example){ %>+ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ <%- parameter.example %>+ </span>+ </h4>+ <% } %><div class="method-list-item-description"><%- parameter.description %></div>@@ -78,6 +86,14 @@ import TabItem from '@theme/TabItem';<%- parameter.type %></span></h4>+ <% if(parameter.example){ %>+ <h4 className="method-list-item-label">+ Example:+ <span className="method-list-item-label-badge">+ <%- parameter.example %>+ </span>+ </h4>+ <% } %><div class="method-list-item-description"><%- parameter.description %></div>