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 https://docs.aws.amazon.com/apigateway/api-reference/link-relation/resource-by-id/).

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