Permalink
Browse files

chriskacerguis/codeigniter-restserver

  • Loading branch information...
franciscof5 committed May 9, 2018
1 parent 9b5f139 commit 608d0b7c0954e87f4d1066c1fbd74c5024d2adfe
Showing with 7 additions and 16 deletions.
  1. +5 −14 README.md
  2. +1 −1 application/config/autoload.php
  3. +1 −1 application/config/config.php
@@ -1,17 +1,8 @@
# bravi-codeignite-rest-crud
store people and their contacts
## Database
Create a database named bravi_contact_list and configure it in application/config/database.php
### SQL
`
CREATE TABLE IF NOT EXISTS `contacts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`contacts` text COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
`
RestServer with support to retrive data in formats:
* HTML
* JSON
* CSV
* XML
@@ -58,7 +58,7 @@
|
| $autoload['libraries'] = array('user_agent' => 'ua');
*/
$autoload['libraries'] = array();
$autoload['libraries'] = array('database');
/*
| -------------------------------------------------------------------
@@ -23,7 +23,7 @@
| a PHP script and you can easily do that on your own.
|
*/
$config['base_url'] = '';
$config['base_url'] = '/bravi-ci/';
/*
|--------------------------------------------------------------------------

0 comments on commit 608d0b7

Please sign in to comment.