Permalink
Browse files

chriskacerguis/codeigniter-restserver

  • Loading branch information...
franciscof5 committed May 9, 2018
1 parent 2413c3a commit 9b5f139547081c1b7d74219e67baedb7cf36457a
Showing with 5,689 additions and 84 deletions.
  1. +482 −0 application/config/config.php.sample
  2. +9 −1 application/config/hooks.php
  3. +15 −0 application/config/ldap.php
  4. +13 −1 application/config/profiler.php
  5. +627 −0 application/config/rest.php
  6. +16 −8 application/config/routes.php
  7. +13 −0 application/controllers/Rest_server.php
  8. +2 −0 application/controllers/Welcome.php
  9. +138 −0 application/controllers/api/Example.php
  10. +273 −0 application/controllers/api/Key.php
  11. +11 −0 application/controllers/api/index.html
  12. +69 −0 application/helpers/db_helper.php
  13. +18 −0 application/hooks/hooks.profiler.php
  14. +11 −0 application/language/bulgarian/index.html
  15. +18 −0 application/language/bulgarian/rest_controller_lang.php
  16. +11 −0 application/language/dutch/index.html
  17. +16 −0 application/language/dutch/rest_controller_lang.php
  18. +18 −0 application/language/english/rest_controller_lang.php
  19. +11 −0 application/language/french/index.html
  20. +18 −0 application/language/french/rest_controller_lang.php
  21. +11 −0 application/language/german/index.html
  22. +18 −0 application/language/german/rest_controller_lang.php
  23. +18 −0 application/language/greek/rest_controller_lang.php
  24. +11 −0 application/language/indonesia/index.html
  25. +18 −0 application/language/indonesia/rest_controller_lang.php
  26. +11 −0 application/language/italian/index.html
  27. +16 −0 application/language/italian/rest_controller_lang.php
  28. +11 −0 application/language/korean/index.html
  29. +16 −0 application/language/korean/rest_controller_lang.php
  30. +11 −0 application/language/portuguese-brazilian/index.html
  31. +18 −0 application/language/portuguese-brazilian/rest_controller_lang.php
  32. +11 −0 application/language/romanian/index.html
  33. +18 −0 application/language/romanian/rest_controller_lang.php
  34. +11 −0 application/language/serbian_cyr/index.html
  35. +18 −0 application/language/serbian_cyr/rest_controller_lang.php
  36. +11 −0 application/language/serbian_lat/index.html
  37. +18 −0 application/language/serbian_lat/rest_controller_lang.php
  38. +11 −0 application/language/simplified-chinese/index.html
  39. +18 −0 application/language/simplified-chinese/rest_controller_lang.php
  40. +11 −0 application/language/spanish/index.html
  41. +18 −0 application/language/spanish/rest_controller_lang.php
  42. +11 −0 application/language/traditional-chinese/index.html
  43. +18 −0 application/language/traditional-chinese/rest_controller_lang.php
  44. +11 −0 application/language/turkish/index.html
  45. +18 −0 application/language/turkish/rest_controller_lang.php
  46. +527 −0 application/libraries/Format.php
  47. +2,356 −0 application/libraries/REST_Controller.php
  48. 0 application/libraries/index.html
  49. +69 −0 application/migrations/20170706025420_create_table_users.php
  50. +70 −0 application/migrations/20170706030520_create_table_api_keys.php
  51. +76 −0 application/migrations/20170706031435_create_table_api_logs.php
  52. +63 −0 application/migrations/20170706032133_create_table_api_access.php
  53. +58 −0 application/migrations/20170706032825_create_table_api_limits.php
  54. +11 −0 application/migrations/index.html
  55. +222 −0 application/views/rest_server.php
  56. +86 −74 application/views/welcome_message.php

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -8,6 +8,14 @@
| This file lets you define "hooks" to extend CI without hacking the core
| files. Please see the user guide for info:
|
| https://codeigniter.com/user_guide/general/hooks.html
| http://codeigniter.com/user_guide/general/hooks.html
|
*/
// hook for enable/disable profiling
$hook['post_controller_constructor'][] = array(
'class' => 'ProfilerEnabler',
'function' => 'enableProfiler',
'filename' => 'hooks.profiler.php',
'filepath' => 'hooks',
'params' => array()
);
@@ -0,0 +1,15 @@
<?php
$config['binduser'] = 'cn=Authentication,ou=Services,dc=example,dc=org';
$config['basedn'] = 'dc=example,dc=org';
$config['bindpw'] = 'E984asdy2';
/*
* The host name parameter can be a space separated list of host names.
* This means that the LDAP code will talk to a backup server if the main server is not operational.
* There will be a delay while the code times out trying to talk to the main server but things will still work.
*/
$config['server'] = 'ldapserver1.example.org ldapserver2.example.org';
$config['port'] = NULL;
/*
* Controls the LDAP_OPT_NETWORK_TIMEOUT option, this is how long the code will attempt to talk to the primary server if it is unreachable.
*/
$config['timeout'] = 5;
@@ -9,6 +9,18 @@
| data are displayed when the Profiler is enabled.
| Please see the user guide for info:
|
| https://codeigniter.com/user_guide/general/profiling.html
| http://codeigniter.com/user_guide/general/profiling.html
|
*/
$config['benchmarks'] = TRUE;
$config['config'] = TRUE;
$config['controller_info'] = TRUE;
$config['get'] = TRUE;
$config['http_headers'] = TRUE;
$config['memory_usage'] = TRUE;
$config['post'] = TRUE;
$config['queries'] = TRUE;
$config['eloquent'] = FALSE;
$config['uri_string'] = TRUE;
$config['view_data'] = TRUE;
$config['query_toggle_count'] = 1000;
Oops, something went wrong.

0 comments on commit 9b5f139

Please sign in to comment.