I have a API Gateway that calls a Cloud Function..
I want to create a config file to 3 routes:
- ..myurl/user
- ..myurl/client
- ..myurl/order
My problem is that I would like to use the same Cloud Function wrote in Python to deal with each scenario since it's just a function to get the data and write in BigQuery, in the end my need is just to know if the data is from user, client or order to switch correctly the insert target load.
Today I am using 3 different cloud functions for each path in the API spec.