rest.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?php
  2. /**
  3. * Part of the Fuel framework.
  4. *
  5. * @package Fuel
  6. * @version 1.5
  7. * @author Fuel Development Team
  8. * @license MIT License
  9. * @copyright 2010 - 2013 Fuel Development Team
  10. * @link http://fuelphp.com
  11. */
  12. /**
  13. * NOTICE:
  14. *
  15. * If you need to make modifications to the default configuration, copy
  16. * this file to your app/config folder, and make them in there.
  17. *
  18. * This will allow you to upgrade fuel without losing your custom config.
  19. */
  20. return array(
  21. /*
  22. | What format should the data be returned in by default?
  23. |
  24. | Default: xml
  25. |
  26. */
  27. 'default_format' => 'xml',
  28. /*
  29. | XML Basenode name
  30. |
  31. | Default: xml
  32. |
  33. */
  34. 'xml_basenode' => 'xml',
  35. /*
  36. | Name for the password protected REST API displayed on login dialogs
  37. |
  38. | E.g: My Secret REST API
  39. |
  40. */
  41. 'realm' => 'REST API',
  42. /*
  43. | Is login required and if so, which type of login?
  44. |
  45. | '' = no login required, 'basic' = unsecure login, 'digest' = more secure login
  46. |
  47. */
  48. 'auth' => '',
  49. /*
  50. | array of usernames and passwords for login
  51. |
  52. | array('admin' => '1234')
  53. |
  54. */
  55. 'valid_logins' => array('admin' => '1234'),
  56. /*
  57. | Ignore HTTP_ACCEPT
  58. |
  59. | A lot of work can go into detecting incoming data,
  60. | disabling this will speed up your requests if you do not use a ACCEPT header.
  61. |
  62. */
  63. 'ignore_http_accept' => false,
  64. );