https://github.com/chriskacerguis/codeigniter-restserver
Enable Key authentication:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
CREATE TABLE IF NOT EXISTS `keys` ( `id` int(11) NOT NULL, `key` varchar(40) NOT NULL, `level` int(2) NOT NULL, `ignore_limits` tinyint(1) NOT NULL DEFAULT '0', `is_private_key` tinyint(1) NOT NULL DEFAULT '0', `ip_addresses` text, `date_created` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; INSERT INTO `keys` (`id`, `key`, `level`, `ignore_limits`, `is_private_key`, `ip_addresses`, `date_created`) VALUES (1, 'LyFk4t8DQ09d4TtLsU6w3Rf77RP55ywJ', 1, 0, 0, NULL, 1442641205); |
/config/rest.php
1 |
$config['rest_enable_keys'] = TRUE; |
Database Configuration:
/config/rest.php
1 2 3 4 5 6 7 8 |
if(ENVIRONMENT == 'development'){ $db_group = 'dev';//development }else if(ENVIRONMENT == 'testing'){ $db_group = 'sandbox'; }else{ $db_group = 'default'; } $config['rest_database_group'] = $db_group; |
Disable or Uninstall WebDavModule in IIS:
http://stackoverflow.com/questions/6147181/405-method-not-allowed-in-iis7-5-for-put-method
Others:
- Key generator:
http://randomkeygen.com/