Skip to content

An API that provides numerous quotes said by famous Formula 1 drivers and personalities.

Notifications You must be signed in to change notification settings

stv-beep/f1-quotes-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏎 Formula 1 quotes API 🏎

Version

An API showing several quotes said by famous Formula 1 drivers and Formula 1 personalities. It scraps all the quotes from certain webs
Very easy to use. GET / shows all the F1 drivers or personalities who have quotes saved in this API, and their code to access them. For example: Max Verstappen's quotes: /quotes/verstappen. Please, realize that there are people with the same last name, so you will have to write the name-last name. Example: /quotes/michael-schumacher and /quotes/mick-schumacher

Endpoints

GET list of F1 drivers or personalities with the available author endpoints

/

GET some iconic quotes of F1 drivers or personalities

/quotes

GET list of F1 drivers or personalities with their photos

/authors

GET F1 driver or personality with his photo

/authors/:authors_last_name

GET all saved quotes from a specific F1 driver

/quotes/:drivers_last_name

GET a specific quote from a specific F1 driver

/quotes/:drivers_last_name/:quote_id

GET 10 quotes in each page of a specific F1 driver

/quotes/:drivers_last_name/p/:page

Development setup

npm install

npm run tsc

npm run dev

Open http://localhost:3000 with your browser to see the API.

Testing

npm run test

npm run test:watch

Production setup

npm start

Contributing

Please report any issue you find in the issues page. Pull requests are more than welcome.