Skip to content

Changed region tags in sample #1612

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions appengine/standard/endpoints-frameworks-v2/echo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ class EchoResponse(messages.Message):
# [END messages]


# [START echo_api]
# [START echo_api_class]
@endpoints.api(name='echo', version='v1')
class EchoApi(remote.Service):

# [START echo_api_method]
@endpoints.method(
# This method takes a ResourceContainer defined above.
ECHO_RESOURCE,
Expand All @@ -54,6 +55,7 @@ class EchoApi(remote.Service):
def echo(self, request):
output_content = ' '.join([request.content] * request.n)
return EchoResponse(content=output_content)
# [END echo_api_method]

@endpoints.method(
# This method takes a ResourceContainer defined above.
Expand Down Expand Up @@ -98,7 +100,7 @@ def get_user_email(self, request):
if not user:
raise endpoints.UnauthorizedException
return EchoResponse(content=user.email())
# [END echo_api]
# [END echo_api_class]


# [START api_server]
Expand Down