# API Gateway mappings

**URL:** <https://forum.serverless.com/t/api-gateway-mappings/19222>\
**Category:** Serverless Framework\
**Tags:** aws, api-gateway\
**Created:** [August 2, 2023, 7:53pm UTC](https://forum.serverless.com/t/api-gateway-mappings/19222 "2023-08-02T19:53:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhmendes](https://avatars.discourse-cdn.com/v4/letter/n/ecc23a/32.png) [@nhmendes](https://forum.serverless.com/u/nhmendes)\
**Post date:** [August 2, 2023, 7:53pm UTC](https://forum.serverless.com/t/api-gateway-mappings/19222/1 "2023-08-02T19:53:39Z")

</div>

How can I setup AWS API Gateway mappings using serverless.ts?

Let’s say base path is: [dev.mycompany.com](http://dev.mycompany.com)  
How can I set a mapping suffix for the API Gateway?

- [https://dev.mycompany.com/my-new-mapping](https://dev.mycompany.com/my-new-mapping)  
(Not a subdomain but a suffix).
