https://serverless-stack.com/ logo
#sst
Title
# sst
a

Adrián Mouly

08/24/2021, 7:10 PM
I’m using API GW v2 with an HTTP Mapping, but the
path params
apparently are not working? in the Console is not showing anything for those mappings? I’m mapping from a subdomain to another domain. This is my code
Copy code
routes: {
        'GET /projects/{projectId}/filters': {
          url: `${BASE_URL}/hey-xxxx/projects/{projectId}/filters`,
          method: HttpMethod.GET,
          timeout: 30,
        },
      },
f

Frank

08/25/2021, 7:17 AM
Hey @Adrián Mouly, did you manage to get it to work?
a

Adrián Mouly

08/25/2021, 7:17 AM
Not yet.
I’m not sure if my Console looks fine or not.
Should it display any mappings?
“request parameter mapping”, should display anything there?
f

Frank

08/25/2021, 7:21 AM
Let me give it a try, 1 sec
a

Adrián Mouly

08/25/2021, 7:22 AM
Ok thank you.
Maybe is not supposed to show anything in there.
f

Frank

08/25/2021, 7:36 AM
I setup an Api with
/redirect
route set to google.com
The screenshot looks very similar to urs.
a

Adrián Mouly

08/25/2021, 7:38 AM
Yes, it’s the same.
But what if you put a
/{path}
?
That’s what I’m trying to get to work.
Should it show anything on
parameters mapping
?
f

Frank

08/25/2021, 8:05 AM
Just tried
/{path}
, Here’s what I see
a

Adrián Mouly

08/25/2021, 8:07 AM
Ok, so no mapping.