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