Faqs

Create a faq(admin)

POST faq(admin)

Endpoint

POST /api/v1/faqs

Request

Route

POST /api/v1/faqs

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzNTYiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxNzgsImV4cCI6MTc1NTg1ODE3OCwianRpIjoiM2U2MTU0ZjMtYjc4Ny00MzFhLTg4YmItMjcyMTFlMWQwNzk4In0.b5MfMSjdtuTq1tWTOlfaWpQFgs3bYMVZ7Anxrf10bx4
Host: example.org
Cookie: 

Body

{
  "faq": {
    "title": "Human Executive",
    "content": "Et quia eos. Qui qui ut. Quia quasi corrupti.",
    "kind": "driver"
  }
}

Response

Simulated Response

Status

200

Headers

x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"cc06a134fd40f8154add09264373806a"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2b305652-096c-4b9c-a62e-1158bce75a87
x-runtime: 0.009930
content-length: 100

Body

{
  "faq": {
    "id": 8,
    "content": "Et quia eos. Qui qui ut. Quia quasi corrupti.",
    "title": "Human Executive"
  }
}