Need to create a web based API to interface with a database.
Major Requirements:
**Authentication is required, will need to be able to add/remove API keys
**Server side Filtering is required: API Key could provide some filter language (via mysql query language) (this filter would not be visible from the client side)
**URL based filtering (timestamp, agency, subject) i.e. api.php?time=7days&agency="*ampa*"&subject="*fire*
I would like for the API keys, filters and a customers name be stored into a new table in the same database;
I have included a copy of the structure of the source database for the API below:
Thanks!
The database structure that exists has the following configuration:
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
-- Dumping database structure for scrapes
CREATE DATABASE IF NOT EXISTS `scrapes` /*!40100 DEFAULT CHARACTER SET latin1 */;