mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-05-18 23:01:02 +00:00
Standardize the API documentation "token" references.
This commit is contained in:
parent
ee73c23f6e
commit
a596041003
11 changed files with 56 additions and 33 deletions
web-frontend/modules/database/components/docs
|
@ -224,7 +224,7 @@ export default {
|
|||
example += `\n-X ${this.type} \\`
|
||||
}
|
||||
|
||||
example += '\n-H "Authorization: Token YOUR_API_KEY" \\'
|
||||
example += '\n-H "Authorization: Token YOUR_DATABASE_TOKEN" \\'
|
||||
|
||||
if (this.request !== false) {
|
||||
index++
|
||||
|
@ -258,7 +258,7 @@ export default {
|
|||
}
|
||||
|
||||
example += `${this.url} HTTP`
|
||||
example += '\nAuthorization: Token YOUR_API_KEY'
|
||||
example += '\nAuthorization: Token YOUR_DATABASE_TOKEN'
|
||||
|
||||
if (this.fileRequest !== '') {
|
||||
example += '\nContent-Length: YOUR_CONTENT_LENGTH'
|
||||
|
@ -295,7 +295,7 @@ export default {
|
|||
|
||||
example += `\n url: "${this.url}",`
|
||||
example += '\n headers: {'
|
||||
example += '\n Authorization: "Token YOUR_API_KEY"'
|
||||
example += '\n Authorization: "Token YOUR_DATABASE_TOKEN"'
|
||||
|
||||
if (this.fileRequest !== '') {
|
||||
index++
|
||||
|
@ -328,7 +328,7 @@ export default {
|
|||
example += `\n "${this.url}",`
|
||||
|
||||
example += '\n headers={'
|
||||
example += `\n "Authorization": "Token YOUR_API_KEY"`
|
||||
example += `\n "Authorization": "Token YOUR_DATABASE_TOKEN"`
|
||||
|
||||
if (this.request !== false) {
|
||||
index++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue