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
- Host: GitHub
- URL: https://github.com/blisterz009/the-joke-teller-api
- Owner: blisterz009
- License: mit
- Created: 2020-06-02T12:14:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-04T12:10:22.000Z (almost 6 years ago)
- Last Synced: 2023-03-06T11:11:58.900Z (about 3 years ago)
- Topics: go, go-learning, jokes-api, rest-api
- Language: Go
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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."
}
```