IronHack-2024 / CodeQuestAPI

This is a REST API to get programming questions
MIT License
0 stars 0 forks source link

Crear endpoint de pega con una pregunta tipo test que siempre es la misma #6

Closed omiras closed 1 day ago

omiras commented 1 day ago

GET /api/v1/questions/random

ME devuelve una pregutna tipo test

{
  "question": "What is the result of `2 + 2` in JavaScript?",
  "options": [
    { "text": "3", "correct": false },
    { "text": "4", "correct": true },
    { "text": "22", "correct": false },
    { "text": "NaN", "correct": false }
  ]
}