Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 924 Bytes

getQuestions.md

File metadata and controls

49 lines (41 loc) · 924 Bytes

Get questions

Description

Get all questions.

URL: /questions

Method: GET

Success Response

Code: 200 OK

Context example

[
  {
    "id": "50f9e662-fa0e-4ec7-b53b-7845e8f821c3",
    "author": "John Stockton",
    "summary": "What is the shape of the Earth?",
    "answers": [
      {
        "id": "ce7bddfb-0544-4b14-92d8-188b03c41ee4",
        "author": "Brian McKenzie",
        "summary": "The Earth is flat."
      },
      {
        "id": "d498c0a3-5be2-4354-a3bc-78673aca0f31",
        "author": "Dr Strange",
        "summary": "It is egg-shaped."
      }
    ]
  },
  {
    "id": "00f3dd43-ae53-4430-8da1-b722e034c73d",
    "author": "Sarah Nickle",
    "summary": "Who let the dogs out?",
    "answers": [
      {
        "id": "c0595408-4f7f-488e-b136-b27077efd0d0",
        "author": "Dave Novak",
        "summary": "some bad person i guess"
      }
    ]
  }
]