- ExecuteRequest(request)source
Executes an API invocation and returns the response object.
- InfoPage()source
Renders an information page.
- LOCAL_STUBS = {'remote_datastore': <google.appengine.ext.remote_api.handler.RemoteDatastoreStub object>}
- OAUTH_SCOPES = ['https://www.googleapis.com/auth/appengine.apis', 'https://www.googleapis.com/auth/cloud-platform']
- get()source
Handle a GET. Just show an info page.
- post()source
Handle POST requests by executing the API call.
- class google.appengine.ext.remote_api.handler.ConfigDefaultssource
Bases: object
Configurable constants.
To override remote_api configuration values, define values like this in your appengine_config.py file (in the root of your app):
- remoteapi_CUSTOM_ENVIRONMENT_AUTHENTICATION = (
‘HTTP_X_APPENGINE_INBOUND_APPID’, [‘otherappid’] )
You may wish to base this file on sample_appengine_config.py.
- CUSTOM_ENVIRONMENT_AUTHENTICATION = ()
- class google.appengine.ext.remote_api.handler.RemoteDatastoreStub(service='datastore_v3', _test_stub_map=None)source
Bases: google.appengine.api.apiproxy_stub.APIProxyStub
Provides a stub that permits execution of stateful datastore queries.
Some operations aren’t possible using the standard interface. Notably, datastore RunQuery operations internally store a cursor that is referenced in later Next calls, and cleaned up at the end of each request. Because every call to ApiCallHandler takes place in its own request, this isn’t possible.
To work around this, RemoteDatastoreStub provides its own implementation of RunQuery that immediately returns the query results.
- google.appengine.ext.remote_api.handler.main()source
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-04-04 UTC."],[[["The `google.appengine.ext.remote_api.handler` module allows you to export App Engine services over HTTP, enabling remote access to these services."],["You can enable the remote API handler in your `app.yaml` file, either in the `builtins` section for serving at `/_ah/remote_api` or in the `handlers` section to define a custom URL path."],["The module provides several authentication methods, with admin user verification as the default, but it also offers a 'custom header' mode for more flexible authentication configurations via the `appengine_config` file."],["The `ApiCallHandler` class handles API calls over HTTP and includes methods for request handling, and serving an information page."],["The `RemoteDatastoreStub` class provides an implementation of the datastore `RunQuery` that can immediately return query results."]]],[]]