Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/stv-beep/f1-quotes-api

An API that provides numerous quotes said by famous Formula 1 drivers and personalities.
https://github.com/stv-beep/f1-quotes-api

api driver express f1-api formula1 formula1-api nodejs quotes rest typescript

Last synced: about 23 hours ago
JSON representation

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

Awesome Lists containing this project

README

        


🏎 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](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.