Fetch app name and api_id in Python middleware?


#1

Hey all!

Just wondering if anyone can let me know if it is possible to fetch the current endpoints app name or api_id within a Python Post middleware?

Cheers
Tom


#2

Ended up printing the spec keys and discovered the api_id can be found in APIID.


#3

Hi Tom, that’s right, you can find all the fields here:

The bindings are dynamically generated using the Protocol Buffers tools.


#4

Hi Matías,

Thanks I spotted that file and realised spec must be being cast to a dict which allowed me to loop over and print the keys. :slight_smile:

Tom