An open API service indexing awesome lists of open source software.

https://github.com/blisterz009/the-joke-teller-api

A rest api written in go that returns a random joke
https://github.com/blisterz009/the-joke-teller-api

go go-learning jokes-api rest-api

Last synced: 5 months ago
JSON representation

A rest api written in go that returns a random joke

Awesome Lists containing this project

README

          

# The-Joke-Teller
This api returns a random awful joke or pun that I have collected recently.

## Usage
* Start the server by running `go run main.go`.
* Make a GET request to `localhost:3000/api/jokes`.
> `curl http://localhost:3000/api/joke`
### The request will produce the following response
```response
{
"id": 6,
"joke": "Why did the coffee file a police report? It got mugged."
}
```