# 匯出 API 閘道的定義

匯出與 AWS API Gateway 或 Azure API Management 相容的 API 定義。

1. 開啟您要匯出的 API 版本。
2. 按一下 匯出。
3. 按一下 OpenAPI 規格，然後選取 AWS API Gateway 或 Azure API Management。

   如果您要將 API 匯出至其他閘道 (例如 Apigee)，建議選取 標準 OAS。![選取規格功能表。](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Resources/Images/ApiDesigner/api-definition-specification.png)
4. 選取 OAS 版本和格式。

   由於 API 閘道不支援 Talend 延伸，因此預設會選取 無延伸，且無法修改。![自訂功能表。](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Resources/Images/ApiDesigner/designer_export_gateway.png)
5. 如果您不想匯出整個 API，請按一下 篩選匯出，然後選取您要匯出的作業。

   當您篩選匯出時，無論您選取哪些作業，都會匯出所有資料類型、元件和資源。

   資訊備註備註：

   即使資源不包含任何作業或其作業被篩選掉，也會匯出資源。例如，在下圖中，/contact/{contactid} 資源中的所有作業都被篩選掉，但路徑仍會出現在匯出的檔案中：
   ```
   "/contacts/{contactid}" : {
         "parameters" : [ {
           "$ref" : "#/components/parameters/contactid"
         } ]
       }
   ```

   匯入包含沒有作業之路徑的檔案時，AWS API Gateway 會顯示警告，但不會阻止匯入。

   ![選取作業選項。](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Resources/Images/ApiDesigner/api-definition-operations.png)
6. 按一下 匯出。