Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How can I expose an extra endpoint that adds a query parameter?

Not applicable

I've a proxy that forwards all requests to my target server and everything works well.

Now I want to add an extra endpoint to my proxy that is an alias of an existing one.

Let's say the original endpoint is

GET /my_original_endpoint?q=10

I want to expose an endpoint like

GET /my_alias_endpoint?q=10

that forward all request to /my_original_endpoint?q=10 but add a value in the query string. the request received by my target endpoint should be

GET /my_original_endpoint?q=10&f=20
1 4 345
4 REPLIES 4