Proxies discovery service requests to a known cloud endpoint.
def google.appengine.tools.devappserver2.endpoints.discovery_api_proxy.DiscoveryApiProxy.generate_directory |
( |
|
self, |
|
|
|
api_configs |
|
) |
| |
Generates an API directory from a list of API files.
Args:
api_configs: A list of strings which are the .api file contents.
Returns:
The API directory as JSON string.
def google.appengine.tools.devappserver2.endpoints.discovery_api_proxy.DiscoveryApiProxy.generate_discovery_doc |
( |
|
self, |
|
|
|
api_config, |
|
|
|
api_format |
|
) |
| |
Generates a discovery document from an API file.
Args:
api_config: A string containing the .api file contents.
api_format: A string, either 'rest' or 'rpc' depending on the which kind
of discvoery doc is requested.
Returns:
The discovery doc as JSON string.
Raises:
ValueError: When api_format is invalid.
def google.appengine.tools.devappserver2.endpoints.discovery_api_proxy.DiscoveryApiProxy.get_static_file |
( |
|
self, |
|
|
|
path |
|
) |
| |
Returns static content via a GET request.
Args:
path: A string containing the URL path after the domain.
Returns:
A tuple of (response, response_body):
response: A HTTPResponse object with the response from the static
proxy host.
response_body: A string containing the response body.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/devappserver2/endpoints/discovery_api_proxy.py