chloerevery / trivia-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trivia-go

Get a random trivia question

curl -X GET 'localhost:8000/trivium'

Add a new trivia question

curl -X POST -d '{"prompt":"How many books are in the Harry Potter series?","answer":"7"}' localhost:8000/trivium

with data:

-prompt (required)

-answer (required)

-answer_details (optional)

-attribution (optional)

About


Languages

Language:Go 100.0%