Api::V1::QuestionsController API

Questions

Get questions

GET /api/v1/questions

Parameters

Name Description
token token

Request

Headers

Content-Type: application/json
Host: example.org
Cookie: 

Route

GET /api/v1/questions?token=foobar128

Query Parameters

token: foobar128

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET,POST,PUT,PATCH,DELETE
Access-Control-Allow-Headers: Origin,Accept,Content-Type,X-Requested-With,X-CSRF-Token,X-API-KEY
Content-Type: application/json; charset=utf-8
ETag: W/"b159bf6c92f5f0fd44ff30f07402dd82"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: ad56fb23-b182-4719-9cde-8db28893e9d6
X-Runtime: 0.008883
Content-Length: 68

Status

200 OK

Body

{
  "questions": [
    {
      "id": 1,
      "title": "MyString",
      "answer_type": "MyString"
    }
  ]
}