

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 在 API Gateway 中使用 OpenAPI 開發 REST API
<a name="api-gateway-import-api"></a>

您可以使用 API Gateway 將 REST API 從外部定義檔案匯入至 API Gateway。目前，API Gateway 支援 [OpenAPI v2.0](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md) 和 [OpenAPI v3.0](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.1.md) 定義檔案，例外狀況列於 [適用於 REST API 的 Amazon API Gateway 重要說明](api-gateway-known-issues.md#api-gateway-known-issues-rest-apis) 中。您可以用新的定義覆寫 API 來更新 API，或與現有的 API 合併定義。您可以在請求 URL 中使用 `mode` 查詢參數來指定選項。

如需從 API Gateway 主控台使用「匯入 API」功能的教學課程，請參閱[教學課程：匯入範例來建立 REST API](api-gateway-create-api-from-example.md)。

**Topics**
+ [將邊緣最佳化 API 匯入至 API Gateway](import-edge-optimized-api.md)
+ [將區域 API 匯入至 API Gateway](import-export-api-endpoints.md)
+ [匯入 OpenAPI 檔案以更新現有的 API 定義](api-gateway-import-api-update.md)
+ [設定 OpenAPI `basePath` 屬性](api-gateway-import-api-basePath.md)
+ [AWS OpenAPI 匯入的 變數](import-api-aws-variables.md)
+ [將 API 匯入 API Gateway 的錯誤和警告](api-gateway-import-api-errors-warnings.md)
+ [從 API Gateway 匯出 REST API](api-gateway-export-api.md)