Manages loading api configs and method lookup.
def google.appengine.tools.devappserver2.endpoints.api_config_manager.ApiConfigManager.configs |
( |
|
self | ) |
|
Return a dict with the current configuration mappings.
Returns:
A dict with the current configuration mappings.
def google.appengine.tools.devappserver2.endpoints.api_config_manager.ApiConfigManager.lookup_rest_method |
( |
|
self, |
|
|
|
path, |
|
|
|
http_method |
|
) |
| |
Look up the rest method at call time.
The method is looked up in self._rest_methods, the list it is saved
in for SaveRestMethod.
Args:
path: A string containing the path from the URL of the request.
http_method: A string containing HTTP method of the request.
Returns:
Tuple of (<method name>, <method>, <params>)
Where:
<method name> is the string name of the method that was matched.
<method> is the descriptor as specified in the API configuration. -and-
<params> is a dict of path parameters matched in the rest request.
def google.appengine.tools.devappserver2.endpoints.api_config_manager.ApiConfigManager.lookup_rpc_method |
( |
|
self, |
|
|
|
method_name, |
|
|
|
version |
|
) |
| |
Lookup the JsonRPC method at call time.
The method is looked up in self._rpc_method_dict, the dictionary that
it is saved in for SaveRpcMethod().
Args:
method_name: A string containing the name of the method.
version: A string containing the version of the API.
Returns:
Method descriptor as specified in the API configuration.
def google.appengine.tools.devappserver2.endpoints.api_config_manager.ApiConfigManager.parse_api_config_response |
( |
|
self, |
|
|
|
body |
|
) |
| |
Parses a json api config and registers methods for dispatch.
Side effects:
Parses method name, etc for all methods and updates the indexing
datastructures with the information.
Args:
body: A string, the JSON body of the getApiConfigs response.
The documentation for this class was generated from the following file:
- code/googleappengine-read-only/python/google/appengine/tools/devappserver2/endpoints/api_config_manager.py