Categorygithub.com/shitpostingio/randomapi
modulepackage
0.0.0-20210107213647-9e6d681485e7
Repository: https://github.com/shitpostingio/randomapi.git
Documentation: pkg.go.dev

# README

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"
          }
      }
      

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

Setup initialize the http server.

# Variables

Build is the git commit ref.
Version is the randomapi version.