Zaczynam używać Google Cloud Endpoints i pojawia się problem podczas określania wielu klas usług. Masz pomysł, jak to działa?Chmury punktów końcowych z wieloma klasami usług
ApiConfigurationError: Attempting to implement service myservice, version v1, with multiple classes that aren't compatible. See docstring for api() for examples how to implement a multi-class API.
W ten sposób tworzę swój serwer punktu końcowego.
AVAILABLE_SERVICES = [
FirstService,
SecondService
]
app = endpoints.api_server(AVAILABLE_SERVICES)
i dla każdej klasy usług Robię to:
@endpoints.api(name='myservice', version='v1', description='MyService API')
class FirstService(remote.Service):
...
@endpoints.api(name='myservice', version='v1', description='MyService API')
class SecondService(remote.Service):
...
Każda z tych prac doskonale osobno, ale nie jestem pewien, jak je zdobyć pracę przy ich łączeniu.
Wielkie dzięki.
Spójrz na to https://developers.google.com/appengine/docs/python/endpoints/create_api#creating_an_api_implemented_with_multiple_classes] –