Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 527 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 527 Bytes

random API

Get a random post

Get a random post from a mongodb collection

  • URL

    /random

  • Method:

    GET

  • Success Response:

    • Code: 200
      Content:
      {
      "id": "bo7od5qka8toqdhaph8g",
      "data": {
          "url": "https://api.shitposting.io/storage/rand_bo7od5qka8toqdhaph8g.jpg",
          "filename": "rand_bo7od5qka8toqdhaph8g.jpg",
          "mediatype": "image",
          "date": "2018-03-30T10:55:09+02:00"
          }
      }