

# 导入和导出 API Gateway 的内容编码
<a name="api-gateway-payload-encodings-import-and-export"></a>

 要导入 [RestApi](https://docs.aws.amazon.com/apigateway/latest/api/API_RestApi.html) 上的 `binaryMediaTypes` 列表，请使用 API 的 OpenAPI 定义文件的以下 API Gateway 扩展。该扩展也用于导出 API 设置。
+ [x-amazon-apigateway-binary-media-types 属性](api-gateway-swagger-extensions-binary-media-types.md)

要导入和导出 `contentHandling` 或 `Integration` 资源的 `IntegrationResponse` 属性值，请使用 OpenAPI 定义的以下 API Gateway 扩展：
+ [x-amazon-apigateway-integration 对象](api-gateway-swagger-extensions-integration.md)
+ [x-amazon-apigateway-integration.response 对象](api-gateway-swagger-extensions-integration-response.md)