An open API service indexing awesome lists of open source software.

https://github.com/foferys/programmers-api

An API in Java that will return programmers fun facts
https://github.com/foferys/programmers-api

api-client api-rest java jpa-hibernate programmers springboot

Last synced: 6 months ago
JSON representation

An API in Java that will return programmers fun facts

Awesome Lists containing this project

README

          

programming funny quotes
=========
[![Contributors](https://img.shields.io/badge/contributors-1-46CC12)](#contributors-)
[![Java](https://img.shields.io/badge/Java-%23ED8B00.svg?logo=openjdk&logoColor=white)](#)
[![Spring Boot](https://img.shields.io/badge/Spring%20Boot-6DB33F?logo=springboot&logoColor=fff)](#)
[![MySQL](https://img.shields.io/badge/MySQL-4479A1?logo=mysql&logoColor=fff)](#)
[![Git](https://img.shields.io/badge/Git-F05032?logo=git&logoColor=fff)](#)

[![pp](https://img.shields.io/badge/Buy_me_a_coffee-3775A9?logo=paypal)](https://www.paypal.com/paypalme/foferys)
[![Hugging Face](https://img.shields.io/badge/Hugging%20Face-FFD21E?logo=huggingface&logoColor=000)](#Dedication-)

## Description:

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

### Example Usage

```
curl https://pleasant-recreation-production.up.railway.app/getPhrase/random
```

Response

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

### Advanced Usage

You can request more than one funny fact at a time by using the GET param `count`

```bash
curl https://pleasant-recreation-production.up.railway.app/getPhrase/?type=backend
```

Response

```json
{
"data": [
{
"id": 1,
"phrase": "Backend developers always say, \"It worked on my local server.\"",
"type": "backend"
},
{
"id": 4,
"phrase": "The backend is like a restaurant kitchen: no one sees it, but it’s where the magic happens.",
"type": "backend"
},
{
"id": 7,
"phrase": "Backend developers can solve any problem, as long as it doesn’t involve CSS.",
"type": "backend"
},
...
]
}
```

you can retrieve a list of quotes filtered by a specific type (backend, frontend, or generic).

```bash
curl https://pleasant-recreation-production.up.railway.app/getPhrase/?type=generic
```

### 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](https://img.shields.io/badge/Donate-3775A9?logo=paypal)](https://www.paypal.com/paypalme/foferys)

## Contributors ✨
[![](https://img.shields.io/badge/contributors-1-46CC12)](# "Contributors")



Gianpiero Ferraro
Gianpiero Ferraro(always me lol)