-
Notifications
You must be signed in to change notification settings - Fork 1
Rest API
IantheJay edited this page Feb 16, 2014
·
4 revisions
For documentation on the REST API, visit this wiki
killKarma Function:
- Receives uuid, password, and server address from client.
- Door karma request is terminated.
requestKarma Function:
- Receives user's name, platform, platform version, uuid, password, and server address from the client.
- Sends request to server for door karma.
fillKarma Function:
- Receives user's name, uuid, platform, platform version, password, server address and the uuid of the request being filled from the client.
- Waiting user accepts the request.
- Request is deleted from userlistKarma pool.
readyKarma Function:
- Receives user's name, uuid, password, and server address from the client.
- Sends notification to server that user is available to provide door karma.
- User is added to the Door Karma Giving pool.
unreadyKarma Function:
- Receives user's name, uuid, password, and server address from the client.
- User is removed from the Door Karma Giving pool.
userlistKarma Function:
- Receives password and server address from the client.
- Returns list of users awaiting door karma and those waiting to give door karma.
waitingPollKarma Function:
- Receives server address and password from the client.
- Allows user to check if someone has filled their request.
readyPollKarma Function:
- Receives sever address and password from the client.
- Checks the userList to see if someone needs door karma.