This is an API that serves to provide dialogue/radio responses for different F1 drivers and teams as per the user request and subject to availability of the driver/team name in the data file, if not, it gives a random generic quote.
This was mainly developed in Ruby, specifically using Ruby on Rails and Bash. It demonstrates the use of Rails controllers and modules
Deployed using: Render (URL : https://f1-radio-bda6.onrender.com )
- Ruby 3.1.2
- Rails 7.x
- SQLite3
- Bundler
Start the Rails server locally:
rails serverAccess the API at http://localhost:3000.
Access the API at https://f1-radio-bda6.onrender.com and use api routes
-
Clone the repository:
git clone <repository-url> cd api
-
Install dependencies:
bundle install
-
Run Rails Server
rails s
-
GET /driver
- Query Parameter:
driver(e.g.,/driver/max_verstappen) - Returns json with driver name and random quote. Example:
{"driver":"max_verstappen","dialogue":"Simply, simply lovely!"} - Query Parameter:
-
GET /team
- Query Parameter:
team(e.g.,/team/red_bull) - Returns json with team name and random team quote
- Query Parameter:
- The internet for the F1 teams and drivers' respective quotes