I would like to query a feature from a rest end point, return a geometry for that feature, and then use that geometry as the "input geometry" in a spatial query on a second different rest endpoint. Is it possible to do this in a single call to the second rest endpoint?
For example, I have tried to put the initial query url (with 'return geometry = yes') into the input geometry parameter for the second spatial query but this doesn't work because the result of the query is not the correct format for the input geometry parameter.

Is there a way to query for a geometry so that the result can be used as input to another query?