App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google.appengine.tools.devappserver2.endpoints.discovery_api_proxy.DiscoveryApiProxy Class Reference
Inheritance diagram for google.appengine.tools.devappserver2.endpoints.discovery_api_proxy.DiscoveryApiProxy:

Public Member Functions

def generate_discovery_doc
 
def generate_directory
 
def get_static_file
 

Detailed Description

Proxies discovery service requests to a known cloud endpoint.

Member Function Documentation

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: