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

Public Member Functions

def __init__
 
def handle_discovery_request
 

Static Public Attributes

dictionary API_CONFIG
 

Detailed Description

Implements the local devserver discovery service.

This has a static minimal version of the discoverable part of the
discovery .api file.

It only handles returning the discovery doc and directory, and ignores
directory parameters to filter the results.

The discovery docs/directory are created by calling a cloud endpoint
discovery service to generate the discovery docs/directory from an .api
file/set of .api files.

Constructor & Destructor Documentation

def google.appengine.tools.devappserver2.endpoints.discovery_service.DiscoveryService.__init__ (   self,
  config_manager 
)
Initializes an instance of the DiscoveryService.

Args:
  config_manager: An instance of ApiConfigManager.

Member Function Documentation

def google.appengine.tools.devappserver2.endpoints.discovery_service.DiscoveryService.handle_discovery_request (   self,
  path,
  request,
  start_response 
)
Returns the result of a discovery service request.

This calls start_response and returns the response body.

Args:
  path: A string containing the SPI API path (the portion of the path
after /_ah/spi/).
  request: An ApiRequest, the transformed request sent to the Discovery SPI.
  start_response: A function with semantics defined in PEP-333.

Returns:
  The response body.  Or returns False if the request wasn't handled by
  DiscoveryService.

Member Data Documentation

dictionary google.appengine.tools.devappserver2.endpoints.discovery_service.DiscoveryService.API_CONFIG
static
Initial value:
1 = {
2  'name': 'discovery',
3  'version': 'v1',
4  'methods': {
5  'discovery.apis.getRest': {
6  'path': 'apis/{api}/{version}/rest',
7  'httpMethod': 'GET',
8  'rosyMethod': _GET_REST_API,
9  },
10  'discovery.apis.getRpc': {
11  'path': 'apis/{api}/{version}/rpc',
12  'httpMethod': 'GET',
13  'rosyMethod': _GET_RPC_API,
14  },
15  'discovery.apis.list': {
16  'path': 'apis',
17  'httpMethod': 'GET',
18  'rosyMethod': _LIST_API,
19  },
20  }
21  }

The documentation for this class was generated from the following file: