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.dev_appserver_apiserver.DiscoveryService Class Reference
Inheritance diagram for google.appengine.tools.dev_appserver_apiserver.DiscoveryService:

Public Member Functions

def __init__
 
def HandleDiscoveryRequest
 

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.dev_appserver_apiserver.DiscoveryService.__init__ (   self,
  config_manager,
  api_request,
  outfile 
)
Initializes an instance of the DiscoveryService.

Args:
  config_manager: an instance of ApiConfigManager.
  api_request: an instance of ApiRequest.
  outfile: the CGI file object to write the response to.

Member Function Documentation

def google.appengine.tools.dev_appserver_apiserver.DiscoveryService.HandleDiscoveryRequest (   self,
  path 
)
Returns the result of a discovery service request.

Args:
  path: the SPI API path

Returns:
  JSON string with result of discovery service API request.

Member Data Documentation

dictionary google.appengine.tools.dev_appserver_apiserver.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: