Random Geek Jokes REST API
Branch: master
Clone or download
Latest commit 7faef2c Nov 4, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Add gitignore and remove binary file Oct 2, 2017
LICENSE Initial commit Jun 16, 2017
Procfile Now "/api" for GET response Jun 17, 2017
README.md Endpoint change Jul 13, 2018
app.py Update app.py Nov 4, 2018
data.json Merge branch 'master' into master Oct 2, 2017
joke.py Update joke.py Oct 10, 2018
requirements.txt Update for Python3 support Oct 10, 2018
runtime.txt Create runtime.txt Oct 10, 2018

README.md

Geek-Jokes

A Flask RESTful API to get random geek jokes

forthebadge forthebadge

What is the Geek-Jokes-api?

The Geek Jokes RESTful API lets you fetch a random geeky/programming related joke for use in all sorts of applications.

Why the Geek-Jokes-api?

The Geek Jokes api is for any developer needing some random (geeky) jokes in their life or application.

URL

GET: https://geek-jokes.sameerkumar.website/api

Usage

Just do a GET request on the API URL.

GET: https://geek-jokes.sameerkumar.website/api

Examples

cURL

curl -X GET \
'https://geek-jokes.sameerkumar.website/api'

Python

import requests

requests.get('https://geek-jokes.sameerkumar.website/api')

Node.js (es6)

var request = require('request');

let options = {
    url: 'https://geek-jokes.sameerkumar.website/api',
    method: 'GET'
}

request(options, (err, response, body) => {
    if(!err && response.statusCode == 200)
        console.log(body)
});

Any browser

visit the url: https://geek-jokes.sameerkumar.website/api to get a joke. Press refresh button for more jokes.

License

MIT

Contact

Contact me here: sameer18051998@gmail.com