I ended up making a local modification to a copy of the endpoints library. The change is in api_config.py, specifically the apiserving_method_decorator
function of the method
decorator. I added the @wraps
decoration to the invoke_remote
function contained within apiserving_method_decorator
:
def method(request_message=message_types.VoidMessage,
response_message=message_types.VoidMessage,
name=None,
path=None,
http_method='POST',
cache_control=None,
scopes=None,
audiences=None,
allowed_client_ids=None,
auth_level=None):
# ...
def apiserving_method_decorator(api_method):
# ...
@wraps(api_method)
def invoke_remote(service_instance, request):
# ...
I then make sure that this locally modified copy of the endpoints library is in my PYTHONPATH
when I run pydoc.