A simple API that provides random "yes" or "no" reasons. Perfect for adding a touch of randomness to your responses π
This API is designed to be straightforward to use.
When self-hosting, the base URL will typically be http://localhost:3000.
| Endpoint | Method | Description |
|---|---|---|
/yes |
GET |
Returns a random "yes" reason. |
/no |
GET |
Returns a random "no" reason. |
GET /yes{
"reason": "Because today is the day!"
}GET /no{
"reason": "The timing isn't right."
}Want to run this API yourself? It's easy with Bun and TypeScript.
- Bun installed on your system.
-
Clone this repository (or create the files manually):
git clone https://github.com/dk-e/yes-no-api cd yes-no-api -
Install dependencies:
bun install
-
Start the server:
bun run index.ts
The API will be live at:
- Yes Reason:
http://localhost:3000/yes - No Reason:
http://localhost:3000/no
- The api will be available to be used at:
https://y-n.daniel.rest