api/v1/register : POST
first_name, last_name, email, password, profile_picture
(note that this picture should be base64)
{ code:100, user: {object}, msg: 'user created successfully' }
api/v1/login : POST
email password
{ status:'success', token: pcoksdnicscjcsoic8y8y33y83ygdbuccx973m }
api/v1/auth/{provider} : POST
Ensure you pass in the provider parameter. e.g facebook or twitter. This must be a string.
{ code:100, token: pcoksdnicscjcsoic8y8y33y83ygdbuccx973m }
api/v1/all/topics : GET
{ code:100, topics: {object} }
api/v1/topics/{topicId} : POST
{ code:100, question: {id: 1, 'How many states are in Nigeria?'} options: {{id: 3, question_id: 1, is_correct: 0, answer: 36}, {id: 1, question_id: 1, is_correct: 1, answer: 34}} }