feat: add joke api (#294)

* feat: add joke api
close #124

* chore: count boundary

* fix: bug fix
chore: update README.md

* feat: add publicapi.json
This commit is contained in:
zhaoyang
2021-12-08 18:38:03 +08:00
committed by GitHub
parent 1688a9efdd
commit 72827704d2
15 changed files with 787 additions and 0 deletions

37
joke/examples.json Normal file
View File

@@ -0,0 +1,37 @@
{
"random": [
{
"title": "Get random n jokes",
"description": "Leveraged by https://github.com/taivop/joke-dataset",
"run_check": false,
"request": {
"count": 3
},
"response": {
"jokes": [
{
"id": "3rpt4l",
"title": "In five-card poker, six-high beats a pair...",
"body": "",
"category": "",
"source": "https://www.reddit.com/r/jokes"
},
{
"id": "5sbykr",
"title": "Who choked harder the Golden State Warriors or the Atlanta Falcons?",
"body": "Hillary Clinton",
"category": "",
"source": "https://www.reddit.com/r/jokes"
},
{
"id": "52uuuz",
"title": "I was wondering why the ball was getting bigger.",
"body": "Then it struck me.",
"category": "",
"source": "https://www.reddit.com/r/jokes"
}
]
}
}
]
}