File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed
Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change 2222# -
2323# -
2424# ------------------------------------------------------------------------------
25+
26+ """
27+ User REST API
28+
29+ The url_prefix is '/user'. All user endpoints are in the form
30+ # of host:port/user/_service_
31+ #
32+
33+
34+ # Register a new user account
35+ /user/register
36+
37+
38+ server = request.headers.get('server')
39+ email = request.form.get('email')
40+ password = request.form.get('password')
41+ password_confirm = request.form.get('password-confirm')
42+ locale = request.form.get('locale')
43+ screen_name = request.form.get('screenname')
44+
45+ # COPPA support
46+ birth_month = request.form.get('bdmonth')
47+ birth_year = request.form.get('bdyear')
48+ parent_email = request.form.get('parent-email')
49+ parent_email_source = request.form.get('parent-email-source')
50+
51+
52+ # Retrieve details about an existing user account
53+ api.add_resource(GetUserById, '/id/<int:id_user>')
54+
55+
56+
57+ api.add_resource(GetUserByEmail, '/email/<string:email>')
58+
59+
60+
61+ api.add_resource(GetUserByScreenname, '/screenname/<string:screen_name>')
62+
63+
64+ # Update a user screen name
65+ api.add_resource(DoInfoChange, '/info/<int:id_user>')
66+
67+
68+ # Update the local defined in the user account
69+ api.add_resource(DoLocaleChange, '/locale/<int:id_user>')
70+
71+ """
You can’t perform that action at this time.
0 commit comments