v1

latestOpenAPI 3.0.0Apache 2.02026-07-179012215.4 KB
topic

All user topics

Get all topics user belongs to

get/api/users/:userId/topics

Path parameters

userIdstring required

logged in users id

Query parameters

includestring

if return objects should include vote, event fields

creatorIdstring

return only topics created by user with creatorId value

visibilitystring required

logged in users id

Response

Return all user related topics

Example response

{
  "status": {
    "code": 20000
  },
  "data": {
    "count": 1,
    "rows": [
      {
        "id": "c2eb6752-7d88-4153-93ae-fe47aee26573",
        "title": "My topic title",
        "description": "<html><head></head><body><h1>My topic title</h1></body></html>",
        "creator": {
          "name": "John Smith"
        },
        "endsAt": "2018-08-06T04:11:41.568Z",
        "hashtag": "banana",
        "createdAt": "2018-08-06T04:11:41.568Z",
        "updatedAt": "2018-08-06T04:11:41.568Z"
      }
    ]
  }
}