Skip to content

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

Notifications You must be signed in to change notification settings

bigmike94/dev-quiz-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages