mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-25 22:40:25 +01:00
[#7782] fixed API preview examples
This commit is contained in:
1 parent
0a74d2f25d
commit
4076537a2c
13 files changed
+20
-15
No files matched your search
@@ -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" },
|
||||
|
||||
@@ -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'
|
||||
`,
|
||||
},
|
||||
],
|
||||
|
||||
Reference in new issue
Block a user