The backend for this project lives at http://rose-message-board.appspot.com.
The backend stores messages. A message consist of 4 parts:
message_id | Unique id of this message |
google_plus_id | Id of the person that posted this message (easy to fake a sender) |
comment | The message body |
created_date_time | When the message was posted |
Using the backend you can create a message and add it to the datastore, get the messages, edit a message, and delete a message (standard CRUD).
Get 10 results: GET request to http://rose-message-board.appspot.comGet 12 results: GET request to http://rose-message-board.appspot.com?limit=12
Get 22 results: GET request to http://rose-message-board.appspot.com?limit=20&offset=0 then...
GET request to http://rose-message-board.appspot.com?limit=20&offset=20
This will return a JSON objects that has a list of messages.
POST request to http://rose-message-board.appspot.com
with a POST body {"google_plus_id": "12345", "comment": "Hello Dave"}
(returns the message that was created, 'status': 'created')
Note that the message_id and created_date_time are not sent, but set by the backend
POST request to http://rose-message-board.appspot.com
with a POST body with a message id and field to edit {"message_id": 15, "comment": "Hello David"}
(returns the message that was edited, 'status': 'updated')
POST request to http://rose-message-board.appspot.com
with a POST body with only the message id {"message_id": 15} (returns 'status': 'deleted')