Boards


Request all boards

/api/boards/
You'll get a list of serialized board objects with following attributes:

{
    "id": 1,
    "name": "Django",
    "description": "Django discussion board",
    "posts_count": 114,
    "topics_count": 106,
    "last_post_datetime": "06.05.2018, 11:10",
    "topics_url": "http://127.0.0.1:8000/api/boards/1/topics/"
}

Request specific board by given id

/api/boards/id/
You'll get only one board object instead list. Structure the same.


Request board topics (topics that belong to the specific board):

/api/boards/id/topics/
You'll get paginated data with following structure:

{
    "count": 106,
    "next": "http://127.0.0.1:8000/api/boards/1/topics/?page=2",
    "previous": null,
    "results": [
        {
            "id": 106,
            "name": "Testing messages framework",
            "starter": {
                "id": 2,
                "username": "Test",
                "detail_url": "http://127.0.0.1:8000/api/users/2/"
            },
            "views": 3,
            "last_updated": "06.05.2018, 11:10",
            "posts_url": "http://127.0.0.1:8000/api/topics/106/posts/",
            "reply_topic": "http://127.0.0.1:8000/api/topics/106/reply/"
        },
        ...
    ]
}