Skip to content

Commit dfd2044

Browse files
igorlukaninKSDaemon
authored andcommitted
Update docs
1 parent 3efb6f6 commit dfd2044

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

docs/pages/product/apis-integrations/rest-api.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ accessible for everyone.
129129
| `meta` | [`/v1/meta`][ref-ref-meta] | ✅ Yes |
130130
| `data` | [`/v1/load`][ref-ref-load], [`/v1/sql`][ref-ref-sql] | ✅ Yes |
131131
| `graphql` | `/graphql` | ✅ Yes |
132+
| `sql` | [`/v1/sql`][ref-ref-sql] | ✅ Yes |
132133
| `jobs` | [`/v1/pre-aggregations/jobs`][ref-ref-paj] | ❌ No |
133134
| No scope | `/livez`, `/readyz` | ✅ Yes, always |
134135

docs/pages/reference/configuration/config.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,13 +1008,13 @@ from cube import config
10081008

10091009
@config('context_to_api_scopes')
10101010
def context_to_api_scopes(context: dict, default_scopes: list[str]) -> list[str]:
1011-
return ['meta', 'data', 'graphql']
1011+
return ['meta', 'data', 'graphql', 'sql']
10121012
```
10131013

10141014
```javascript
10151015
module.exports = {
10161016
contextToApiScopes: (securityContext, defaultScopes) => {
1017-
return ['meta', 'data', 'graphql'];
1017+
return ['meta', 'data', 'graphql', 'sql'];
10181018
},
10191019
};
10201020
```

docs/pages/reference/configuration/environment-variables.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ endpoints.
860860

861861
| Possible Values | Default in Development | Default in Production |
862862
| ------------------------------------------------------------------------------ | ---------------------- | --------------------- |
863-
| A comma-delimited string with any combination of [API scopes][ref-rest-scopes] | `meta,data,graphql` | `meta,data,graphql` |
863+
| A comma-delimited string with any combination of [API scopes][ref-rest-scopes] | `meta,data,graphql,sql`| `meta,data,graphql,sql`|
864864

865865
See also the [`context_to_api_scopes` configuration
866866
option](/reference/configuration/config#context_to_api_scopes).

0 commit comments

Comments
 (0)