可能です私は、エンドポイントのプロジェクト実装:が、それは同じのApp EngineプロジェクトにエンドポイントとWSGIApplicationアプリケーションをホストする
@endpoints.api(name='froom', version='v1', description='froom API')
class FRoomApi(remote.Service):
@endpoints.method(FbPutRoomRequest, RoomMessage, path='putroom/{id}', http_method='PUT', name='putroom')
def put_room(self, request):
entity = FRoom().put_room(request, request.id)
return entity.to_request_message()
application = endpoints.api_server([FRoomApi],restricted=False)
app.yamlを
- url: /_ah/spi/.*
script: froomMain.application
- url: .*
static_files: index.html
upload: index.html
を、私は別のWSGI神社のプロジェクトがあります。
をroutes = [
Route(r'/', handler='handlers.PageHandler:root', name='pages-root'),
# Wipe DS
Route(r'/tasks/wipe-ds', handler='handlers.WipeDSHandler', name='wipe-ds'),
]
config = {
'webapp2_extras.sessions': {
'secret_key': 'someKey'
},
'webapp2_extras.jinja2': {
'filters': {
'do_pprint': do_pprint,
},
},
}
application = webapp2.WSGIApplication(routes, debug=DEBUG, config=config)
app.yamlを
適切なサブアプリへのルーティングが確実に行うことができるように- url: /.*
script: froomMain.application
はそれが対処する必要が根本的な問題は、適切な全体的なアプリケーションの要求の名前空間を定義している同じアプリケーションでこれらの二つのプロジェクトをホストする