Skip to content

strawmang/strawmang

Repository files navigation

strawmang

Strawmang is a simple chat application.

There can be three debates where people can anonymously or not debate about a topic. People can at anytime start a vote to kill the current topic where it will get deleted and possibly replaced by another topic. Topics can also be pruned after a certain amount of time.

The exact details haven't been completely established yet so it's still up in the air.

API/endpoints

None of this is final yet and I'm just using this as a base to figure out how the data structures will be organized

All endpoints and websocket can optionally return an error field that will indicate if any errors are returned

/status

Returns a JSON response listing the available chat endpoints. Expected response:

{
  "topics": [
  {
    "id": 5,
      "topic": "Tea vs coffee",
      "started": 1440290981,
      "ends": 1440294201,
  },
  {
    "id": 6,
    "topic": "Gentoo vs Arch",
    "started": 1440290981,
    "ends": 1440294201,
  },
  {
    "id": 7,
    "topic": "Javascript vs Coffeescript",
    "started": 1440290981,
    "ends": 1440294201,
  },
  ],
  "users": 15,
}