8000 GitHub - favoriabs/quiz-app
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

favoriabs/quiz-app

Repository files navigation

simple quiz-app

Endpoints

To register a user

api/v1/register : POST

params

first_name, last_name, email, password, profile_picture (note that this picture should be base64)

response

{ code:100, user: {object}, msg: 'user created successfully' }

User Login

api/v1/login : POST

params

email password

response

{ status:'success', token: pcoksdnicscjcsoic8y8y33y83ygdbuccx973m }

social login

api/v1/auth/{provider} : POST Ensure you pass in the provider parameter. e.g facebook or twitter. This must be a string.

response

{ code:100, token: pcoksdnicscjcsoic8y8y33y83ygdbuccx973m }

api/v1/all/topics : GET

response

{ code:100, topics: {object} }

api/v1/topics/{topicId} : POST

response

{ 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}} }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0