[#7782] fixed API preview examples

This commit is contained in:
Gani Georgiev
2026-07-30 17:20:23 +03:00
parent 0a74d2f25d
commit 4076537a2c
13 changed files with 20 additions and 15 deletions
+1 -1
View File
@@ -167,7 +167,7 @@ export function docsAuthWithOAuth2(collection) {
t.div(
{ className: "alert success api-preview-alert" },
t.span({ className: "label method" }, "POST"),
t.span({ className: "path" }, `/api/collections/${collection.name}/auth-with-password`),
t.span({ className: "path" }, `/api/collections/${collection.name}/auth-with-oauth2`),
),
t.table(
{ className: "api-preview-table body-params" },
+1 -1
View File
@@ -153,7 +153,7 @@ await pb.collection('${collection?.name}').requestVerification('test@example.com
-H 'Authorization:TOKEN' \\
-H 'Content-Type:application/json' \\
-d '{ ... }' \\
'${baseURL}/api/collections/${collection.name}/records/RECORD_ID'
'${baseURL}/api/collections/${collection.name}/records'
`,
},
],