Skip to content

Commit

Permalink
even more link fixes (#7148)
Browse files Browse the repository at this point in the history
* even more link fixes

* add remaining exchangerates items
  • Loading branch information
jrhizor committed Oct 20, 2021
1 parent 67b01e7 commit 1affb14
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
Expand Up @@ -121,7 +121,7 @@ In your `source.py` file, add this `ExchangeRates` class. This stream represents
from airbyte_cdk.sources.streams.http import HttpStream

class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

# Set this as a noop.
primary_key = None
Expand Down Expand Up @@ -153,7 +153,7 @@ python main.py discover --config sample_files/config.json
Update your `ExchangeRates` class to implement the required functions as follows:
```python
class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

primary_key = None

Expand Down
Expand Up @@ -10,7 +10,7 @@ We'll begin by creating a stream to represent the data that we're pulling from t

```python
class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

# Set this as a noop.
primary_key = None
Expand Down
Expand Up @@ -36,7 +36,7 @@ Let's begin by pulling data for the last day's rates by using the `/latest` endp

```python
class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

primary_key = None

Expand Down Expand Up @@ -133,7 +133,7 @@ from datetime import datetime, timedelta


class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"
cursor_field = "date"
primary_key = "date"

Expand Down
6 changes: 3 additions & 3 deletions airbyte-cdk/python/docs/tutorials/http_api_source.md
Expand Up @@ -227,7 +227,7 @@ Let's create a class in `source.py` which extends `HttpStream`. You'll notice th
We'll begin by creating a stream to represent the data that we're pulling from the Exchange Rates API:
```python
class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]:
# The API does not offer pagination, so we return None to indicate there are no more pages in the response
Expand Down Expand Up @@ -320,7 +320,7 @@ Let's begin by pulling data for the last day's rates by using the `/latest` endp

```python
class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

def __init__(self, base: str, **kwargs):
super().__init__()
Expand Down Expand Up @@ -425,7 +425,7 @@ from datetime import datetime, timedelta


class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"
cursor_field = "date"

def __init__(self, base: str, start_date: datetime, **kwargs):
Expand Down
Expand Up @@ -227,7 +227,7 @@ Let's create a class in `source.py` which extends `HttpStream`. You'll notice th
We'll begin by creating a stream to represent the data that we're pulling from the Exchange Rates API:
```python
class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]:
# The API does not offer pagination, so we return None to indicate there are no more pages in the response
Expand Down Expand Up @@ -320,7 +320,7 @@ Let's begin by pulling data for the last day's rates by using the `/latest` endp

```python
class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

def __init__(self, base: str, **kwargs):
super().__init__()
Expand Down Expand Up @@ -425,7 +425,7 @@ from datetime import datetime, timedelta


class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"
cursor_field = "date"

def __init__(self, base: str, start_date: datetime, **kwargs):
Expand Down
Expand Up @@ -2,7 +2,7 @@
"documentationUrl": "https://docs.airbyte.io/integrations/sources/exchangeratesapi",
"connectionSpecification": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ratesapi.io Source Spec",
"title": "exchangeratesapi.io Source Spec",
"type": "object",
"required": ["start_date", "access_key"],
"additionalProperties": false,
Expand Down
Expand Up @@ -14,7 +14,7 @@


class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"
cursor_field = "date"
primary_key = "date"

Expand Down
Expand Up @@ -129,7 +129,7 @@ In your `source.py` file, add this `ExchangeRates` class. This stream represents
from airbyte_cdk.sources.streams.http import HttpStream

class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

# Set this as a noop.
primary_key = None
Expand Down Expand Up @@ -163,7 +163,7 @@ Update your `ExchangeRates` class to implement the required functions as follows

```python
class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

primary_key = None

Expand Down
2 changes: 1 addition & 1 deletion docs/connector-development/tutorials/cdk-speedrun.md
Expand Up @@ -130,7 +130,7 @@ In your `source.py` file, add this `Pokemon` class. This stream represents an en

```python
class Pokemon(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

# Set this as a noop.
primary_key = None
Expand Down
Expand Up @@ -10,7 +10,7 @@ We'll begin by creating a stream to represent the data that we're pulling from t

```python
class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

# Set this as a noop.
primary_key = None
Expand Down
Expand Up @@ -36,7 +36,7 @@ Let's begin by pulling data for the last day's rates by using the `/latest` endp

```python
class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"

primary_key = None

Expand Down Expand Up @@ -133,7 +133,7 @@ from datetime import datetime, timedelta


class ExchangeRates(HttpStream):
url_base = "https://api.ratesapi.io/"
url_base = "https://api.exchangeratesapi.io/"
cursor_field = "date"
primary_key = "date"

Expand Down

0 comments on commit 1affb14

Please sign in to comment.