Skip to content

foferys/programmers-facts-api

Repository files navigation

programming funny quotes

Contributors Java Spring Boot MySQL Git

pp Hugging Face

Description:

A simple api that returns a random funny fact about programming on a GET request

Example Usage

curl http://localhost:8080/v1/phrases/random

Response

{
    "data": {
        "id": 24,
        "phrase": "The first rule of debugging: Don’t make it worse.",
        "type": "generic"
    }
}

Advanced Usage

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"
        }
    ]
}

Dedication

This API serves up quirky quotes that programmers can’t debug away!

my coding backpack in ASCII ART

If you enjoy this api, or just love programming, please donate to:

pp

Contributors ✨

Gianpiero Ferraro
Gianpiero Ferraro(always me lol)

About

An API in Java that will return programmers fun facts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published