I am using the google apigateway with the following structure: an endpoint called 'product' and then a product id. Hence each product gives a different url. E.g. my first product might be https://www.my-endpoint/product/1 and the second would be https://www.my-endpoint/product/2
I know how to do this if it was a parameter based endpoint. If the endpoint was called product-info, and had a unique product number, I could do something like the following, and pass in a parameter. E.g. https://www.my-endpoint/product-info?productid=1 to get the info of the first product, but I can't figure out what to do when it's a different url for what would be each query parameter
"/product-info":
get:
x-google-backend:
address: https://my-endpoint/product-info
operationId: "product-id-endpoint"
parameters:
-
name: iataCode
in: query
required: false
type: string
responses:
200:
description: "Success."
schema:
type: string
400:
description: "Failed"
Is this not possible? I can make it work on AWS apigateway, thought it should be possible on google cloud as well