cs97jjm3 / ergast-f1-api

A PHP-based read-only API for the Ergast Formula One MySQL database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ergast-f1-api

A PHP-based API using the Ergast Formula One MySQL database

Configuration

Obtain a MySQL database image from: http://ergast.com/mrd/db/

Restore the database and set the username and password for a user with read-only privileges in f1dbro.inc

Add a rewrite rule to the .htaccess file in the root directory of the server e.g.

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^api/(.*) /php/api/index.php [L]
</IfModule>

This example assumes the API code is installed in /php/api and the desired location of the API is /api

About

A PHP-based read-only API for the Ergast Formula One MySQL database

License:Apache License 2.0


Languages

Language:PHP 100.0%