diff --git a/ingestion/api.http b/ingestion/api.http deleted file mode 100644 index 740e70f..0000000 --- a/ingestion/api.http +++ /dev/null @@ -1,3 +0,0 @@ -GET https://nr-data-catalogue-sso.apps.emerald.devops.gov.bc.ca/api/v1/users HTTP/1.1 -Content-Type: application/json -Authorization: Bearer \ No newline at end of file diff --git a/ingestion/api.py b/ingestion/api.py deleted file mode 100644 index ec9514b..0000000 --- a/ingestion/api.py +++ /dev/null @@ -1,27 +0,0 @@ -import requests - -# Set your OpenMetadata API endpoint and authentication token -api_endpoint = 'https://nr-data-catalogue-test.apps.emerald.devops.gov.bc.ca/api/v1' -# Obtained from the bot "ingestion-bot" -auth_token = '' # JWT is acquired from ingestion bot in the UI - -# Example API endpoint to make a request to -api_url = f'{api_endpoint}/tags' - -# Set up headers with the authentication token -headers = { - 'Authorization': f'Bearer {auth_token}', - 'Content-Type': 'application/json' -} - -# Make a GET request to the API endpoint -response = requests.get(api_url, headers=headers) - -# Check the response status code -if response.status_code == 200: - # Request was successful, do something with the response data - data = response.json() - print(data) -else: - # Request failed, print error message - print(f'Error: {response.status_code} - {response.text}') \ No newline at end of file diff --git a/ingestion/Dockerfile b/scripts/Dockerfile similarity index 100% rename from ingestion/Dockerfile rename to scripts/Dockerfile diff --git a/ingestion/data-class-ingestion.py b/scripts/ingestion.py similarity index 100% rename from ingestion/data-class-ingestion.py rename to scripts/ingestion.py