A simple API to retrieve some quotes of Better Call Saul!
GET /quotes
[
{
"message": "A good magician never reveals his secrets.",
"author": "Jimmy McGill"
},
{
"message": "My friends, I promise you that together, we will prosper.",
"author": "Gustavo Fring"
},
{
"message": "My brother is not a bad person. He has a good heart. It’s just he can’t help himself. And everyone’s left picking up the pieces.",
"author": "Chuck McGill"
}
]
GET /quotes/${quoteId}
Parameter | Type | Description |
---|---|---|
quoteId |
number |
Required. Id of quote to fetch |
{
"message": "S'all Good, Man.",
"author": "Jimmy McGill"
}
GET /quotes/random
{
"message": "I don’t know what image you have of him, past or present, or whatever he did or said, but Jimmy is a good lawyer. And he works very hard.",
"author": "Kim Wexler"
}
You can integrate the API into Postman thanks to the Postman collection available on the repository.
To run this project, you will need to add the following environment variables to your .env file
TYPEORM_TYPE
TYPEORM_HOST
TYPEORM_PORT
TYPEORM_USERNAME
TYPEORM_PASSWORD
TYPEORM_DATABASE
Clone the project
git clone https://github.com/emanuelvald/better-call-saul-quotes-api.git
Go to the project directory
cd my-project
Install dependencies
npm install
Run Migrations
npm run typeorm:run
Start the server
npm run start
Feel free to suggest any changes or add new quotes, just do a pull request!