# How to automatically get the OpenAPI spec of an API product ?

**URL:** <https://discuss.google.dev/t/how-to-automatically-get-the-openapi-spec-of-an-api-product/8727>\
**Category:** Apigee\
**Tags:** developer-portal\
**Created:** [December 5, 2019, 4:00pm UTC](https://discuss.google.dev/t/how-to-automatically-get-the-openapi-spec-of-an-api-product/8727 "2019-12-05T16:00:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [December 5, 2019, 4:00pm UTC](https://discuss.google.dev/t/how-to-automatically-get-the-openapi-spec-of-an-api-product/8727/1 "2019-12-05T16:00:49Z")

</div>

Hi Folks,

In Apigee Edge, Once we defined an API Product, is there a way to get/download the OpenApi spec for this API product ?

Indeed before publishing an API Product to the (integrated) dev portal we’re asked to fill a spec for that product !

We’re looking for best practices to publish an API Product to the portal (1- we have to create a spec for that product before publishing it ? maybe it’s the recommendation to be compliant with Apigee “outside-in approche” ? 2- The spec can be automatically generated based on the API proxies contained in the product ? etc.)

In advance thanks for your feedback

Best regards

Youssef
