The Backend of the Live Status System for MozTW Space http://moztw.org/space/
https://moztw.hackpad.com/lfbTlV3Aq8Y
https://github.com/bobby1030/moztwspace-front
https://api.moztw-space.rmstudio.tw
| Feature Name |
URI |
Method |
Fields |
Returns |
| Register |
/v1/register |
POST |
- (string)
nickname Nickname of the User - (string)
mozillians Mozillians ID - (string)
id ID for Login
|
- (boolean)
status Status of the Registrationtrue successfulfalse failed
- (int)
error Error Code- 0: no errors
- 1:
id is duplicated - 2:
mozillians is already taken by another user
|
| Sign In |
/v1/signin/id |
GET |
(none) |
- (boolean)
status Status of Sign Intrue successfulfalse failed
- (string)
nickname Nickname of the Signing Out User - (int)
timestamp Timestamp of Signing Out
|
| Sign Out |
/v1/signout/id |
GET |
(none) |
- (boolean)
status Status of Sign Outtrue successfulfalse failed
- (string)
nickname Nickname of the Signing Out User - (int)
timestamp Timestamp of Signing Out
|
| Profile Fetch |
/v1/profile/id |
GET |
(none) |
- (boolean)
status Profile is Exists or nottrue successfulfalse failed
- (string)
nickname Nickname of the User - (string)
mozillians Mozillians ID - (string)
id ID for Login
|
| Profile Update |
/v1/profile/id |
POST |
- (string)
nickname Nickname of the User - (string)
mozillians Mozillians ID - (string)
id ID for Login
|
- (boolean)
status Status of Profile Updatingtrue successfulfalse failed
- (int)
error Error Code- 0: no errors
- 1:
id is not registed
|
| Status Fetch |
/v1/status |
GET |
(none) |
- (object array)
active List of Users in the Space- (string)
nickname Nickname of the User - (string)
mozillians Mozillians ID - (string)
id ID of the User - (int)
stays The Time of the User Stay in the Space in seconds
|