Hi, I need to access to api through my airbyte ope...
# help-api-cli-orchestration
t
Hi, I need to access to api through my airbyte open-source code. Can anyone show me how to achieve this?
u
New message text here
t
But what if I need to test the url path in Postman? Should I use localhost in the path? @kapa.ai
u
Based on the information provided in the extracts, there is no specific mention of using Postman for testing URL paths. However, if you are working with a local Postgres database on your computer, you should use
host.docker.internal
as the host instead of
localhost
when setting up the source and destination. This is particularly relevant if you are on a Mac. Here is the source for this information: [Replicate Data Between PostgreSQL Databases](https://airbyte.com/tutorials/postgres-replication) Please note that this information might not directly apply to testing URL paths in Postman, as the context here is about setting up a source Postgres database. For more specific instructions related to Postman, you might need to refer to Postman's own documentation or tutorials.
t
@kapa.ai can I use AIRBYTE_API_HOST in file .env from source code or I need to change it into specific IP?
u
A message from kapa.ai
u
The
AIRBYTE_API_HOST
is an environment variable that you can set in your
.env
file. This variable should be set to the IP address or hostname where your Airbyte instance is running. If you're running Airbyte locally, you can set this to
localhost
. Here's an example of how you might set it in your
.env
file:
Copy code
AIRBYTE_API_HOST=localhost
However, if you're deploying Airbyte in a Docker or Kubernetes environment, you might need to set this to the specific IP address or hostname of the machine where Airbyte is running. In the context of Docker deployments, the
.env
file is used to inject appropriate variables into the containers as mentioned in the [Configuring Airbyte](https://docs.airbyte.com/operator-guides/configuring-airbyte) guide. For Kubernetes deployments, you would modify the
.env
in the respective directory and each application will consume the appropriate environment variable from a generated configmap. Remember to replace
localhost
or the specific IP with the actual host where your Airbyte instance is running.
r