An API for recording how many cups of water you have drunk
- Storing the number of cups that users have drunk
- Return the number of cups that users have drunk
- Upgrade user to "PRO" user
- Validate user "PRO" identity
- Return the leaderboard of drinking water
- Create user
- Login
- Logout
200 return the top 10 drinking users and their PRO status
500 something wrong on the server side
argument expected: username
200 add 1 cup to the database record, and return the number of cups that user has drunk
400 you haven't provide the "username"
401 username not found
500 something wrong on the server side
argument expected: username
200 return true: user is a PRO
400 you haven't provide the "username"
401 return false: user is not a PRO
404 username not found
500 something wrong on the server side
argument expected: username
200 return true: user exists
400 you haven't provide the "username"
404 return false: user not exists
404 username not found
500 something wrong on the server side