Every Learner Deserves Support Whilst Studying at Home

MathsGee STEM Question and Answer Bank REST API

Welcome to the REST API. Below, you'll find a full listing of all the available endpoints.
For more information about a particular endpoint, click on its name under the Resource header.
This documentation is for our most recent version of the REST API, version 1.
REST API are available only to users Super Administrators or with higher grade.
Users
View user information data such as user id, handle, points, questions count and answers count.
GET/v1/users/
Load a list of Users.
Example request
https://mathsgee.com/qna/api/v1/users/
Example response
[
    {
        "userid": 1,
        "handle": "m1ky91",
        "points": 200,
        "qcount": 1,
        "acount": 2
    },
    {
        "userid": 2,
        "handle": "test",
        "points": 100,
        "qcount": 0,
        "acount": 0
    },
    {
        "userid": 3,
        "handle": "testtest",
        "points": 100,
        "qcount": 0,
        "acount": 0
    }
]
GET/v1/users/{userid}
Load a User.
Example request
https://mathsgee.com/qna/api/v1/users/1
Example response
[
    {
        "userid": 1,
        "handle": "m1ky91",
        "points": 200,
        "qcount": 1,
        "acount": 2
    }
]
GET/v1/users/range/{fromuserid}/{touserid}
Load a range of Users.
Example request
https://mathsgee.com/qna/api/v1/users/1/2
Example response
[
    {
        "userid": 1,
        "handle": "m1ky91",
        "points": 200,
        "qcount": 1,
        "acount": 2
    },
    {
        "userid": 2,
        "handle": "test",
        "points": 100,
        "qcount": 0,
        "acount": 0
    }
]
Questions
View question information data such as question id, title, content, category id, tags, user id, creation date and answers count.
GET/v1/questions/
Load a list of Questions.
Example request
https://mathsgee.com/qna/api/v1/questions/
Example response
[
    {
        "questionid": 1,
        "title": "Is this a question test 1?",
        "content": "test 1",
        "categoryid": 1,
        "tags": [
            "test1",
            "test2"
        ],
        "userid": 1,
        "creationdate": "2015-07-03 15:21:54",
        "acount": 2
    },
    {
        "questionid": 4,
        "title": "Is this a question test 2?",
        "content": "test 2",
        "categoryid": 1,
        "tags": [
            "test1",
            "test2",
            "test3"
        ],
        "userid": 4,
        "creationdate": "2015-08-17 10:41:57",
        "acount": 0
    }
]
GET/v1/questions/{questionid}
Load a Question.
Example request
https://mathsgee.com/qna/api/v1/questions/1
Example response
[
    {
        "questionid": 1,
        "title": "Is this a question test 1?",
        "content": "test 1",
        "categoryid": 1,
        "tags": [
            "test1",
            "test2",
            "test3"
        ],
        "userid": 1,
        "creationdate": "2015-07-03 15:21:54",
        "acount": 2
    }
]
GET/v1/questions/range/{fromquestionid}/{toquestionid}
Load a range of Questions.
Example request
https://mathsgee.com/qna/api/v1/questions/1/2
Example response
[
    {
        "questionid": 1,
        "title": "Is this a question test 1?",
        "content": "test 1",
        "categoryid": 1,
        "tags": [
            "test1",
            "test2"
        ],
        "userid": 1,
        "creationdate": "2015-07-03 15:21:54",
        "acount": 2
    }
]
Answers
View answer information data such as answer id, question id and content.
GET/v1/answers/
Load a list of Answers.
Example request
https://mathsgee.com/qna/api/v1/answers/
Example response
[
    {
        "answerid": 2,
        "questionid": 1,
        "content": "This is a answer test 1"
    },
    {
        "answerid": 3,
        "questionid": 1,
        "content": "This is a answer test 2"
    }
]
GET/v1/answers/{answerid}
Load a range of Answers.
Example request
https://mathsgee.com/qna/api/v1/answers/2
Example response
[
    {
        "answerid": 2,
        "questionid": 1,
        "content": "This is a answer test 1"
    }
]
GET/v1/answers/{fromanswerid}/{toanswerid}
[plugin_rest_api/rest_api_answers__answers_range]
Example request
https://mathsgee.com/qna/api/v1/answers/1/2
Example response
[
    {
        "answerid": 2,
        "questionid": 1,
        "content": "This is a answer test 1"
    }
]
Categories
View category information data such as category id, title and questions count.
GET/v1/categories/
Load a list of Categories.
Example request
https://mathsgee.com/qna/api/v1/categories/
Example response
[
    {
        "categoryid": 1,
        "title": "Test category 1",
        "qcount": 2
    },
    {
        "categoryid": 2,
        "title": "Test category 2",
        "qcount": 0
    }
]
GET/v1/categories/{categoryid}
Load a Category.
Example request
https://mathsgee.com/qna/api/v1/categories/1
Example response
[
    {
        "categoryid": 1,
        "title": "Test category 1",
        "qcount": 2
    }
]
Tags
View tag information data such as tag id, title and tag count.
GET/v1/tags/
Load a list of Tag.
Example request
https://mathsgee.com/qna/api/v1/tags/
Example response
[
    {
        "tagid": 3,
        "title": "test1",
        "tagcount": 2
    },
    {
        "tagid": 5,
        "title": "test2",
        "tagcount": 2
    },
    {
        "tagid": 9,
        "title": "test3",
        "tagcount": 2
    }
]
GET/v1/tags/{tagid}
Load a Tag.
Example request
https://mathsgee.com/qna/api/v1/tags/3
Example response
[
    {
        "tagid": 3,
        "title": "test1",
        "tagcount": 2
    }
]
Welcome to MathsGee STEM Question and Answer Bank, a platform, where you can ask maths and science questions and receive answers from other members of the community. Help is always 100% FREE!
MathsGee Q&A is the STEM knowledge-sharing community where students and experts put their heads together to crack their toughest homework questions.

Enter your email address:

Popular Courses

Python For First Timers
Python For Everyone