Step 3: Call your API proxy

You're viewing Apigee X documentation.
View Apigee Edge documentation.

Now that you've created a new proxy, you're ready to test it by calling the proxy. To call the proxy, enter the following command:

curl -v https://YOUR_ENV_GROUP_HOSTNAME/myproxy

where YOUR_ENV_GROUP_HOSTNAME is the hostname for an environment group that contains the environment in which your proxy is deployed. See Find the environment group hostname.

A successful call to the proxy returns the following output:

Hello, Guest!

If you get a timeout error or your test is unsuccessful, try undeploying and then redeploying the new API proxy. For more information, see Deploying an API proxy. If you continue to experience this issue, contact Apigee Support.

Find the environment group hostname

If you don't know the environment group hostname, you can find it as follows:

  1. In the Apigee UI, select Admin > Environments > Groups.
  2. Look for a row displaying the environment in which your proxy is deployed. For example, if the environment is my-environment, the row might appear as shown below:

    Environment groups pane in the Apigee UI.

    The environment group hostname for this environment is example.my-environment-group.

In this case, the curl command to call the proxy would be:

curl -v https://example.my-environment-group/myproxy

In the next step, you will change the target endpoint to return XML data from the target service.

Next step

1 2 3 (NEXT) Step 4: Change the target endpoint 5