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
- Host: GitHub
- URL: https://github.com/foferys/programmers-api
- Owner: foferys
- License: mit
- Created: 2024-12-16T13:38:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T16:37:28.000Z (about 1 year ago)
- Last Synced: 2025-04-05T12:09:45.234Z (9 months ago)
- Topics: api-client, api-rest, java, jpa-hibernate, programmers, springboot
- Language: HTML
- Homepage: https://pleasant-recreation-production.up.railway.app/getPhrase/random
- Size: 1.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
programming funny quotes
=========
[](#contributors-)
[](#)
[](#)
[](#)
[](#)
[](https://www.paypal.com/paypalme/foferys)
[](#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!
If you enjoy this api, or just love programming, please donate to:
[](https://www.paypal.com/paypalme/foferys)
## Contributors ✨
[](# "Contributors")