Skip to content

Instantly share code, notes, and snippets.

@mykhailo-riabokon
Last active January 9, 2019 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mykhailo-riabokon/44b9810d04dfbfba2343da339476e72a to your computer and use it in GitHub Desktop.
Save mykhailo-riabokon/44b9810d04dfbfba2343da339476e72a to your computer and use it in GitHub Desktop.
WellDone API V1

Posts

GET /posts - get all posts

Response body

  [
    {
      "id": "1",
      "title": "My awesome post"
    },
    {
      "id": "2",
      "title": "Not as good as first one"
    }
  ]

POST /posts - create a new post

Request body

  {
    "title": "My awesome post",
    "content": "All words I know",
    "previewImg": "https://gph.is/V4zGWG"
  }

Response body

  {
    "id": "1"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment