Search verified questions
Search verified questions
- application/json
Request Body
The search options
- questionText string
Text content of the question
- id number
Unique identifier of the question
- tagIds number[]
Array of tag IDs for filtering
- categoryIds number[]
Array of category IDs for filtering
- userIds number[]
Array of user IDs for filtering
- typeIds number[]
Array of question type IDs for filtering
- difficulties string[]
Array of difficulty levels for filtering
order object
column stringPossible values: [
id
,user_id
,username
,category_id
,type_id
,question_text
,verified
,difficulty_level
,views_count
,question_image
,explanation
,flagged
,questions_created_at
,questions_updated_at
,deleted_at
,archived_at
,votes
]Column to sort by
direction stringPossible values: [
asc
,desc
]Sorting direction
- limit number
Default value:
10
Limit for the number of returned records
- offset number
Default value:
0
Offset for pagination
- 200
Returns an array of verified questions based on search criteria.
- application/json
- Schema
- Example (from schema)
Schema
questions object[] required
Array of questions
Array [id number requiredUnique identifier for the question
user object
id number requiredUnique identifier for the user
username string requiredUsername of the user
role string requiredRole of the user (e.g., admin, user)
questionText string requiredText content of the question
category object
id numberUnique identifier for the category
name stringName of the category
description stringDescription of the category
questionType object
id number requiredUnique identifier for the question type
name string requiredName of the question type
question_image string requiredImage associated with the question, if any
explanation string requiredExplanation or answer to the question
difficulty_level string requiredDifficulty level of the question
verified number requiredVerification status of the question
flagged number requiredFlag status of the question
votes number requiredNumber of votes the question has received
numberOfAnswers number requiredNumber of answers the question has received
userVote string requiredPossible values: [
up
,down
,null
]Vote status by the current user
created_at date-time requiredDate when the question was created
updated_at date-time requiredDate when the question was last updated
]- totalCount number required
Total number of questions
{
"questions": [
{
"id": 0,
"user": {
"id": 0,
"username": "string",
"role": "string"
},
"questionText": "string",
"category": {
"id": 0,
"name": "string",
"description": "string"
},
"questionType": {
"id": 0,
"name": "string"
},
"question_image": "string",
"explanation": "string",
"difficulty_level": "string",
"verified": 0,
"flagged": 0,
"votes": 0,
"numberOfAnswers": 0,
"userVote": "up",
"created_at": "2024-07-21T21:27:58.752Z",
"updated_at": "2024-07-21T21:27:58.752Z"
}
],
"totalCount": 0
}