RESTful GET without extra querystring SOLVED

I’m wanting to create an API where GET takes the normal REST form of GET /resource/[id] rather than having to have GET /resource?id=[id] is this possible. Even AWS’s RESTful APIs look like my first example, so I’m sure it’s the right pattern (eg

SOLVED: Simply setting the path for the function to /resource/{id} provides what I was looking for.