Skip to content

Commit

Permalink
Rename github_config
Browse files Browse the repository at this point in the history
  • Loading branch information
burnash committed May 14, 2024
1 parent cafa96c commit 913fa91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/website/docs/dlt-ecosystem/verified-sources/rest_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ from rest_api import RESTAPIConfig, rest_api_resources

@dlt.source
def github_source(github_token=dlt.secrets.value):
github_config: RESTAPIConfig = {
config: RESTAPIConfig = {
"client": {
"base_url": "https://api.github.com/repos/dlt-hub/dlt/",
"auth": {
Expand Down Expand Up @@ -145,7 +145,7 @@ def load_github() -> None:
print(load_info)
```

The declarative resource configuration is defined in the `github_config` dictionary. It contains the following key components:
The declarative resource configuration is defined in the `config` dictionary. It contains the following key components:

1. `client`: Defines the base URL and authentication method for the API. In this case it uses token-based authentication. The token is stored in the `secrets.toml` file.

Expand Down

0 comments on commit 913fa91

Please sign in to comment.