# API gateway & versioning

A step of the [Cloud application](https://gradus.kazet.blog/tree/cloud-application) tree on Gradus, in the Serving & compute area: HTTP, workers, scaling.

Page: https://gradus.kazet.blog/tree/cloud-application/step/api-gateway

Put an API gateway in front of services to handle versioning, TLS termination and routing by path.

Usually comes after: [Routing & middleware](https://gradus.kazet.blog/tree/cloud-application/step/routing-and-middleware).

Leads to: [API documentation](https://gradus.kazet.blog/tree/cloud-application/step/api-documentation).

## Prompt for your AI assistant

```
Introduce an API gateway in front of this application that handles path-based routing and API versioning, and move TLS termination and request logging to it.
```

Every step of the tree: https://gradus.kazet.blog/tree/cloud-application/llms.txt
