

# Documentation for REST APIs in API Gateway
<a name="api-gateway-documenting-api"></a>

 To help customers understand and use your API, you should document the API. To help you document your API, API Gateway lets you add and update the help content for individual API entities as an integral part of your API development process. API Gateway stores the source content and enables you to archive different versions of the documentation. You can associate a documentation version with an API stage, export a stage-specific documentation snapshot to an external OpenAPI file, and distribute the file as a publication of the documentation. 

To document your API, you can call the [API Gateway REST API](https://docs.aws.amazon.com/apigateway/latest/api/), use one of the [AWS SDKs](https://aws.amazon.com/developer/tools/), use the [AWS CLI](https://docs.aws.amazon.com/cli/latest/reference/apigateway/) for API Gateway, or use the API Gateway console. In addition, you can import or export the documentation parts that are defined in an external OpenAPI file.

To share API documentation with developers, you can use a developer portal. For an example, see [Integrating ReadMe with API Gateway to Keep Your Developer Hub Up to Date](https://aws.amazon.com/blogs/apn/integrating-readme-with-amazon-api-gateway-to-keep-your-developer-hub-up-to-date/) or [How to Streamline API Development on Amazon API Gateway Using SmartBear’s SwaggerHub](https://aws.amazon.com/blogs/apn/how-to-streamline-api-development-on-amazon-api-gateway-using-smartbear-swaggerhub/) on the AWS Partner Network (APN) blog.

**Topics**
+ [Representation of API documentation in API Gateway](api-gateway-documenting-api-content-representation.md)
+ [Document an API using the API Gateway console](api-gateway-documenting-api-quick-start-with-console.md)
+ [Publish API documentation using the API Gateway console](apigateway-documenting-api-with-console.md)
+ [Document an API using the API Gateway REST API](api-gateway-documenting-api-quick-start-with-restapi.md)
+ [Publish API documentation using the API Gateway REST API](api-gateway-documenting-api-quick-start-publishing.md)
+ [Import API documentation](api-gateway-documenting-api-quick-start-import-export.md)
+ [Control access to API documentation in API Gateway](api-gateway-documenting-api-content-provision-and-consumption.md)