Haz clic en Seleccionar.
El asistente de creación de proxy se abre y la página Detalles del proxy se propaga de forma previa con valores de la Especificación de OpenAPI.
Edita el campo Descripción (Description) de la siguiente manera: proxy de API para Hello World.
Haz clic en Siguiente.
En la página Políticas (Policies), haz lo siguiente:
En Seguridad: autorización (Security: Authorization), selecciona Pasar (sin autorización) (Pass through [no authorization]).
En Seguridad: navegador (Security: Browser), selecciona Agregar encabezados de CORS (Add CORS headers).
Haz clic en Siguiente.
En la página Flujos (Flows), asegúrate de que todas las operaciones estén seleccionadas y haz clic en Siguiente (Next).
En la página Resumen (Summary), selecciona el entorno en el que deseas realizar la implementación en Implementación opcional (Optional Deployment).
Haz clic en Crear e implementar (Create and deploy).
En la página Summary, verás una confirmación de que tu proxy de API nuevo se creó correctamente y se implementó en el entorno seleccionado.
Paso 2: Crear un producto de API
Crea un producto de API que contenga los recursos de API que quieres exponer a los consumidores de API.
Para crear un producto de API, haz lo siguiente:
En la IU de Apigee, selecciona Publicar > Productos de API en la barra de navegación izquierda para abrir la página Productos de API.
Haz clic en +CREAR.
Se mostrará la página Producto.
Ingresa los detalles del producto para el producto de API. Nota: Los campos Display Name y Description se muestran en el portal cuando publicas el producto de API de forma predeterminada. Puedes editar los valores en el Paso 3: Publicar la API en el portal.
Campo
Valor
Nombre
Hello World
Nombre visible
Hello World
Descripción
Ejemplo simple de Hello World
Entorno
Selecciona el entorno en el que se implementa el proxy de API.
Acceso
Pública
Aprueba de manera automática las solicitudes de acceso
Habilitado
Cuota
(déjalo en blanco)
Permisos de OAuth permitidos
(déjalo en blanco)
En laOperaciones sección, haz clic en ADD AN OPERATION para identificar las operaciones que se agregarán a su producto de API.
En Fuente (Source), haz clic en Proxy de API (API Proxy) y selecciona Mock-Target-API en el menú desplegable.
En Operación, ingresa una barra diagonal (/) en el campo Ruta de acceso. Ignora los otros campos.
Haz clic en Guardar para guardar la operación.
Se muestra el cuadro de diálogo Agregar operación (Add Operation).
Haz clic en Agregar.
Haz clic en Guardar.
Paso 3: Publicar la API en el portal
Publica la API en el portal para permitir que tus clientes obtengan información acerca de esta y la usen.
Para publicar la API en el portal, sigue estos pasos:
En la IU de Apigee, navega a la página de las API en tu portal:
Selecciona Publish > Portals en la barra de navegación izquierda.
Haz clic en la fila My first portal para abrir el portal.
Haz clic en API Catalog para ver la página de las API.
Haz clic en +.
Selecciona Hello World en el cuadro de diálogo Add an API product to the catalog y haz clic en Next.
En Detalles de la API (API details), configura las siguientes opciones:
Selecciona Publicada (enumerada en el catálogo) (Publish [listed in the catalog]) para publicar la API en tu portal.
En Mostrar imagen (Display image), haz lo siguiente:
Haz clic en Select image.
Haz clic en home-background.jpg en la lista de imágenes existentes, en el cuadro de diálogo Seleccionar imagen.
Haz clic en Seleccionar.
Obtén una vista previa de la imagen y haga clic en Select.
En Categorías (Categories), ingresa Comenzar (Get Started) y presiona Enter.
Deja todos los demás valores con su configuración predeterminada.
En Documentación de la API (API documentation), para generar de forma automática la documentación de referencia de la API a partir de una instantánea de la especificación de OpenAPI, haz lo siguiente:
Selecciona Documento de OpenAPI.
Haz clic en Seleccionar documento.
Selecciona la pestaña Import from a URL.
Ingrese helloworld en el campo Spec name.
Copia y pega la siguiente URL en el campo URL y, luego, presiona Enter:
Para ver la documentación de referencia de la API, sigue estos pasos:
En la IU de Apigee, haz clic en Portal en vivo para ver los cambios en el portal en vivo (o actualiza el portal en vivo si ya está abierto en otra pestaña).
En el portal en vivo:
a. Haz clic en API en la barra de navegación superior para ver la API publicada.
b. Haz clic en la tarjeta Hello World para ver la documentación de referencia de la API.
c. Prueba tu API.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-03 (UTC)"],[[["\u003cp\u003eThis guide walks through publishing an API to a portal using Apigee or Apigee hybrid.\u003c/p\u003e\n"],["\u003cp\u003eThe process involves creating an API proxy from an OpenAPI Specification within the Apigee UI.\u003c/p\u003e\n"],["\u003cp\u003eAn API product is generated, defining the resources to be exposed to API consumers through the portal.\u003c/p\u003e\n"],["\u003cp\u003eFinally, the API is published to the portal, enabling customers to learn about and utilize it, including generating API reference documentation.\u003c/p\u003e\n"]]],[],null,["# Step 6: Publish an API\n\n*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\n\n*View [Apigee Edge](https://docs.apigee.com/api-platform/get-started/what-apigee-edge) documentation.*\n\n\u003cbr /\u003e\n\nIn this step, you'll publish an API to the portal by performing the following steps:\n\n1. [Create an API proxy from a spec](#proxy)\n2. [Create an API product](#product)\n3. [Publish the API to your portal](#publish)\n\nStep 1: Create an API Proxy from a spec\n---------------------------------------\n\nCreate an API proxy from an OpenAPI Specification that describes the API.\n\nTo create an API proxy from an OpenAPI Specification: \n\n### Cloud Console UI\n\n1. In the Apigee in Cloud console, go to the **Proxy Development \\\u003e API proxies** page.\n\n [Go to API proxies](https://console.cloud.google.com/apigee/proxies)\n2. Click **Create** .\n The **Create a proxy** wizard opens prompting you to select the type of API\n proxy to create.\n\n3. Click in the **Proxy template** box.\n\n4. Click **OpenAPI spec template, Reverse Proxy (most common)**.\n\n5. Open the following file in a browser, and then save it:\n\n ```text\n https://raw.githubusercontent.com/apigee/api-platform-samples/master/default-proxies/helloworld/openapi/mocktarget3.0.yaml\n ```\n\n \u003cbr /\u003e\n\n6. In **Step 1 OpenAPI Specs** , click **Browse**.\n\n7. Navigate to an OpenAPI Spec file you just downloaded, select it, and then\n click **Open**.\n\n8. Click **Next**.\n\n9. In **Step 2 Proxy details** , the fields are prepopulated using values from\n the OpenAPI Specification. Edit the **Description** field as follows: **API proxy for hello world.**\n\n10. Click **Next**.\n\n11. In **Step 3 Flows**, select all operations.\n\n12. Click **Next**.\n\n13. In **Step 4 Deploy**, select the environment to which you want to deploy.\n\n14. Click **OK**.\n\n15. Click **Create**.\n\n| **Note:** It may take a few moments for Apigee to deploy the new proxy.\n\nWhen the proxy is deployed, the **Status** column in the **Deployments**\nsection displays a green icon to show that the API proxy revision is deployed.\nYou can hold the pointer over the status icon to see more information about\nthe deployment.\n\n### Classic UI\n\n1. In the Apigee UI, select **Develop \\\u003e API proxies** in the left navigation bar to open the API proxies page.\n2. Click **Create New** .\n\n The Create Proxy wizard opens prompting you to select the type of API proxy to create.\n3. Under **Reverse Proxy (most common)** , click **Use OpenAPI Spec** .\n\n The **Use OpenAPI Spec** dialog displays.\n4. Copy and paste the following URL in **OpenAPI Spec URL** field on the **URL** tab:\n\n ```text\n https://raw.githubusercontent.com/apigee/api-platform-samples/master/default-proxies/helloworld/openapi/mocktarget3.0.yaml\n ```\n5. Click **Select** .\n The **Create Proxy** wizard opens and the **Proxy details** page is prepopulated using values from the OpenAPI Specification.\n\n6. Edit the **Description** field as follows: **API proxy for hello world.**\n\n7. Click **Next**.\n\n8. On the **Policies** page:\n\n - Under **Security: Authorization** , select **Pass through (no authorization)**.\n - Under **Security: Browser** , select **Add CORS headers** .\n\n9. Click **Next**.\n\n10. On the **Flows** page, make sure all operations are selected and click **Next** .\n\n11. On the **Summary** page, select the environment to which you want to deploy under **Optional Deployment**.\n\n12. Click **Create and deploy**.\n\nOn the **Summary** page, you'll see an acknowledgement that your new API proxy was created successfully\nand deployed to the selected environment.\n\nStep 2: Create an API product\n-----------------------------\n\nCreate an API product that contains the API resources that you want to expose to your API consumers.\n\nTo create an API product:\n\n1. In the Apigee in Cloud console, go to the **Distribution \\\u003e API products** page.\n\n [Go to API products](https://console.cloud.google.com/apigee/apiproducts)\n2. Click **Create** . The **Product details** page is displayed.\n Enter the **Product Details** for your API product. \n\n | **Note:** The **Display Name** and **Description** fields are displayed in the portal when you publish the API product, by default. You can edit the values in [Step 3: Publish the API to your portal](#publish).\n\n \u003cbr /\u003e\n\n \u003cbr /\u003e\n\n3. In the **Operations** section, click **Add an operation** to identify the\n operations to add to your API product.\n\n - Under **Source** , select **API proxy** and then select **Mock-Target-API** from the drop-down.\n - Under **Operation** , enter a forward slash (`/`) in the **Path** field. Ignore the other fields.\n4. Click **Save** to save the operation.\n\n5. Click **Save** to save the product.\n\nStep 3: Publish the API to your portal\n--------------------------------------\n\nPublish the API to your portal to enable your customers to learn about and use it.\n\nTo publish the API to your portal: \n\n### Cloud Console UI\n\n1. In the Apigee in Cloud console, go to the **Distribution \\\u003e Portals** page.\n\n [Go to Portals](https://console.cloud.google.com/apigee/portals)\n2. Click in the **My first portal** row to open the portal.\n\n3. Click the **APIs** tab.\n\n4. Click **+ API**.\n\n5. For **API product** select **Hello World**.\n\n6. Select **Published (listed in the catalog)** to publish the API to your portal.\n\n7. For **Display title** , enter **Hello World**.\n\n8. For **Display image** , click **Select**.\n\n9. Click **Assets**.\n\n10. Click **Preview** for `home-background.jpg`.\n\n11. Click **Select**.\n\n12. For **API documentation**, to auto-generate API reference documentation\n from a snapshot of your OpenAPI Specification:\n\n 1. Select **OpenAPI document**.\n 2. Click **Select**.\n 3. Click the **URL** tab.\n 4. Type **helloworld** in the **Spec name** field.\n 5. Copy and paste the following URL in the **URL** field: \n\n ```text\n https://raw.githubusercontent.com/apigee/api-platform-samples/master/default-proxies/helloworld/openapi/mocktarget3.0.yaml\n ```\n 6. Click **Select**.\n13. Click **Save**.\n\n### Classic UI\n\n1. In the Apigee UI, navigate to the APIs page in your portal:\n 1. Select **Publish \\\u003e Portals** in the left navigation bar.\n 2. Click in the **My first portal** row to open the portal.\n 3. Click **API Catalog** to display the APIs page.\n2. Click **+**.\n3. Select **Hello World** in the **Add an API product to the catalog** dialog and click **Next**.\n4. Under **API details** , configure the following options:\n - Select **Published (listed in the catalog)** to publish the API to your portal.\n - For **Display image** :\n 1. Click **Select image**.\n 2. Click `home-background.jpg` from the list of existing images in the **Select image** dialog.\n 3. Click **Select**.\n 4. Preview the image and click **Select**.\n - For **Categories** , enter **Get Started** and press **Enter**.\n\n Leave all other values set to their defaults.\n\n\n5. Under **API documentation** , to auto-generate API reference documentation from a snapshot of your OpenAPI Specification:\n 1. Select **OpenAPI document**.\n 2. Click **Select Document**.\n 3. Select the **Import from a URL** tab.\n 4. Enter **helloworld** in the **Spec name** field.\n 5. Copy and paste the following URL in the **URL** field and press **Enter** : \n\n ```text\n https://raw.githubusercontent.com/apigee/api-platform-samples/master/default-proxies/helloworld/openapi/mocktarget3.0.yaml\n ```\n 6. Click **Select**.\n\n\n6. Click **Save**.\n\nStep 4: View the API reference documentation\n--------------------------------------------\n\nTo view the API reference documentation:\n\n1. In the Apigee UI, click **Live Portal** to view the changes in the live portal (or refresh the live portal if it is already open in another tab).\n2. In the live portal:\n 1. Click **APIs** in the top navigation bar to the view published API.\n 2. Click the **Hello World** card to view the API reference documentation.\n 3. Give your API a try!\n\n| **Congratulations!** You have successfully completed the tutorial. Ready to learn more? Go to the [Apigee portal documentation](/apigee/docs/api-platform/publish/portal/build-integrated-portal)."]]