summaryrefslogtreecommitdiff
path: root/opendc/api/v1/users/endpoint.py
diff options
context:
space:
mode:
authorSacheendra talluri <sacheendra.t@gmail.com>2017-04-04 15:34:01 +0200
committerGitHub <noreply@github.com>2017-04-04 15:34:01 +0200
commit693a23d17c8783e51a97fd5a2439b5d1ceaa003c (patch)
treefdad42c44a147e03101925ffd4d62a869bac4490 /opendc/api/v1/users/endpoint.py
parent59b05ac8425e34cdf41179506cdda357c59b4b12 (diff)
parentfd0376c5a8f018457a11bb0f9602bda366571955 (diff)
Merge pull request #6 from atlarge-research/api-over-http
Access API over HTTP
Diffstat (limited to 'opendc/api/v1/users/endpoint.py')
-rw-r--r--opendc/api/v1/users/endpoint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/opendc/api/v1/users/endpoint.py b/opendc/api/v1/users/endpoint.py
index 1f43f665..7e381ed5 100644
--- a/opendc/api/v1/users/endpoint.py
+++ b/opendc/api/v1/users/endpoint.py
@@ -43,7 +43,6 @@ def POST(request):
request.check_required_parameters(
body = {
'user': {
- 'googleId': 'string',
'email': 'string'
}
}
@@ -54,6 +53,7 @@ def POST(request):
# Instantiate a User
+ request.params_body['user']['googleId'] = request.google_id
user = User.from_JSON(request.params_body['user'])
# Make sure a User with this Google ID does not already exist