If you have finished setting up and configuring Apigee, you're ready to create a simple API proxy.
Apigee UI in Cloud console
- Open the Apigee UI in the Cloud console in a browser.
- In the left navigation pane, click Proxy development > API Proxies.
- In the API Proxies pane, click + Create.
- In the Create a proxy pane, under Proxy template, select Reverse proxy (Most common).
- Under Proxy details, enter the following:
- Proxy name: Enter
myproxy
. The remaining steps in this section assume that this is your proxy's name. - Base Path: Automatically set to the value you enter for
Proxy name
. The Base Path is part of the URL used to make requests to your API. Apigee uses the URL to match and route incoming requests to the proper API proxy. - Description (Optional): Enter a description for your new API proxy, such as "Testing Apigee with a simple proxy."
- Target (Existing API): Enter
https://mocktarget.apigee.net
. This defines the target URL that Apigee invokes on a request to the API proxy. The mocktarget service is hosted at Apigee and returns simple data. It requires no API key or access token. - Click Next.
- Proxy name: Enter
- Under Policies, after Security: Authorization, select Pass through (no authorization).
- Click Next.
- Under Deploy (optional) click Create. (Leave the Deployment environments field unchanged.)
Apigee creates the new proxy and displays a summary of the proxy details in the myproxy pane.
Classic Apigee UI
To create a simple API proxy in the classic Apigee UI:
- Open the Apigee UI in a browser.
- Click Develop > API Proxies in the main view of the UI.
From the Select Environment drop-down list, select the environment in which you want to create a new API proxy.
The Apigee UI displays a list of API proxies for that environment. If you haven't created any proxies yet, the list is empty.
- Click Create New.
The Create Proxy wizard starts:
- Select Reverse proxy (most common).
The Proxy details view is displayed.
- Configure your proxy with the following settings:
- Proxy Name: Enter
myproxy
. The remaining steps in this section assume that this is your proxy's ID. - Proxy Base Path: Automatically set to
/myproxy
. The Proxy Base Path is part of the URL used to make requests to your API. Apigee uses the URL to match and route incoming requests to the proper API proxy. - Description (Optional): Enter a description for your new API proxy, such as Testing Apigee with a simple proxy.
- Target (Existing API): Enter
https://mocktarget.apigee.net
. This defines the target URL that Apigee invokes on a request to the API proxy. The mocktarget service is hosted at Apigee and returns simple data. It requires no API key or access token.
Your API proxy's details should look like the following:
- Proxy Name: Enter
- Click Next.
- On the Common policies screen, select Pass through (no authorization) as the security option.
- Click Next.
- On the Summary screen, click Create. (Leave the
Optional Deployment unselected.)
Apigee generates the proxy (sometimes referred to as the proxy bundle):
- Click Go to proxy list.
Apigee displays the Proxies view, which displays a list of API proxies. The new proxy has a gray status indicator, meaning that it has not yet been deployed.
You've created a simple API proxy. Next you'll deploy it to your environment.
Next step
1 (NEXT) Step 2: Deploy the API proxy 3 4 5
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 2023-03-20 UTC.