Skip to content

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Api with basic quizzes for developers


Api contains questions in

  • HTML
  • CSS
  • Javascript
  • PHP
  • MySQL

Usage


Getting questions

GET https://dev-quiz-api.000webhostapp.com/questions - Getting all questions (randomized)

GET https://dev-quiz-api.000webhostapp.com/questions/p/1 - Getting all questions per page (pagination)

GET https://dev-quiz-api.000webhostapp.com/questions/php - Getting questions by subject. Values acceptable: html, css, javascript, php, mysql

GET https://dev-quiz-api.000webhostapp.com/questions/html/p/1 - Getting questions by subject per page (pagination). Values acceptable: html, css, javascript, php, mysql

GET https://dev-quiz-api.000webhostapp.com/questions/stack/backend - Getting questions by stack: frontend/backend (randomized). Values acceptable: frontend, backend.

GET https://dev-quiz-api.000webhostapp.com/questions/stack/frontend/p/1 - Getting questions by stack per page (pagination)



Getting response on user's answer

POST https://dev-quiz-api.000webhostapp.com/answers-response - Pass object with key as question's id and value as users'answer and get response in the form of key-value pairs where key is question's id and value is answers on question whether user answered correctly


Pattern:

Passed: {"1":"Home tool Markup Language"}

Received: {"1":"0"}

About

Basic quiz api for developers with subjects: HTML, CSS, Javascript, PHP, MySQL

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages