A simple api that returns a random funny fact about programming on a GET request
curl http://localhost:8080/v1/phrases/random
Response
{
"data": {
"id": 24,
"phrase": "The first rule of debugging: Don’t make it worse.",
"type": "generic"
}
}
you can retrieve a list of quotes filtered by a specific type (backend, frontend, or generic).
curl http://localhost:8080/v1/phrases/?type=backend
Response
{
"data": [
{
"id": 1,
"phrase": "Backend developers always say, 'It worked on my local server.'",
"type": "backend"
},
{
"id": 4,
"phrase": "Backend developers don’t fear downtime; they fear 'urgent deployments.'",
"type": "backend"
}
]
}
This API serves up quirky quotes that programmers can’t debug away!
If you enjoy this api, or just love programming, please donate to:
Gianpiero Ferraro(always me lol) |