Skip to main content

Retrieve questions by offset and limit

Retrieve questions by offset and limit

Query Parameters
  • offset number required

    The offset of the question

  • limit number required

    The limit of the question

Responses

Returns an array of questions.


Schema
  • Array [
  • questions object[] required

    Array of questions

  • Array [
  • id number required

    Unique identifier for the question

  • user object
  • id number required

    Unique identifier for the user

  • username string required

    Username of the user

  • role string required

    Role of the user (e.g., admin, user)

  • questionText string required

    Text content of the question

  • category object
  • id number

    Unique identifier for the category

  • name string

    Name of the category

  • description string

    Description of the category

  • questionType object
  • id number required

    Unique identifier for the question type

  • name string required

    Name of the question type

  • question_image string required

    Image associated with the question, if any

  • explanation string required

    Explanation or answer to the question

  • difficulty_level string required

    Difficulty level of the question

  • verified number required

    Verification status of the question

  • flagged number required

    Flag status of the question

  • votes number required

    Number of votes the question has received

  • numberOfAnswers number required

    Number of answers the question has received

  • userVote string required

    Possible values: [up, down, null]

    Vote status by the current user

  • created_at date-time required

    Date when the question was created

  • updated_at date-time required

    Date when the question was last updated

  • ]
  • totalCount number required

    Total number of questions

  • ]
Loading...