Test APIs as described in the following sections. See also Managing folders and files in an Apigee workspace.
When you deploy your environment, the URL of the API proxy endpoint is displayed in the emulators section, under Active deployments.
To copy the URL for the API proxy endpoint, position your cursor over the URL and click .
The URL for your API proxy endpoint is structured as follows:
https://0:8998/shopping/cart/addItem |_____||____________||______| | | | host+port basepath resource
By default, the host and port (traffic) default to 0
and 8998
, respectively.
You define the port when installing the Apigee Emulator, and the basepath and resource values when developing your API proxy.
To test your APIs using curl, open the Terminal tab and execute a call to your API.
For example:
curl 0:8998/helloworld
If your API requires API key-based authentication:
Click Active developer apps in the Active test resources section of the Apigee Emulator and copy the consumerKey
value (without the quotes) for the API product, as shown in the following figure.
Pass the API key in your curl call, as required by your API. For example, the following curl call passes the API key in the apikey
query parameter:
curl 0:8998/helloworld?apikey=ZQA5euYtNeJ7ZCGCJMpvd6F2BZOmxOzY
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-04-24 UTC.