Skip to content

mingtsay/moztw-space-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

moztw-space-backend

The Backend of the Live Status System for MozTW Space http://moztw.org/space/

Discussion

https://moztw.hackpad.com/lfbTlV3Aq8Y

Front-end Repository

https://github.com/bobby1030/moztwspace-front

Service

https://api.moztw-space.rmstudio.tw

APIs

Version 1

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 Registration
    • true successful
    • false 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 In
    • true successful
    • false 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 Out
    • true successful
    • false 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 not
    • true successful
    • false 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 Updating
    • true successful
    • false 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

About

The Backend of the Live Status System for MozTW Space http://moztw.org/space/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published