2
2
3
3
return [
4
4
5
- /*
6
- |--------------------------------------------------------------------------
7
- | Query Parameter Prefix
8
- |--------------------------------------------------------------------------
9
- |
10
- | Defines the prefix used for the predefined query parameters such as:
11
- | fields, sort or with
12
- |
13
- */
5
+ /*
6
+ |--------------------------------------------------------------------------
7
+ | Query Parameter Prefix
8
+ |--------------------------------------------------------------------------
9
+ |
10
+ | Defines the prefix used for the predefined query parameters such as:
11
+ | fields, sort or with
12
+ |
13
+ */
14
14
15
- 'prefix ' => '_ ' ,
15
+ 'prefix ' => '_ ' ,
16
16
17
- /*
18
- |--------------------------------------------------------------------------
19
- | Envelope
20
- |--------------------------------------------------------------------------
21
- |
22
- | Define whether to use an envelope for meta data or not. By default the
23
- | meta data will be in the response header not in the body.
24
- |
25
- */
17
+ /*
18
+ |--------------------------------------------------------------------------
19
+ | Envelope
20
+ |--------------------------------------------------------------------------
21
+ |
22
+ | Define whether to use an envelope for meta data or not. By default the
23
+ | meta data will be in the response header not in the body.
24
+ |
25
+ */
26
26
27
- 'envelope ' => false ,
27
+ 'envelope ' => false ,
28
28
29
- /*
30
- |--------------------------------------------------------------------------
31
- | Fulltext Search
32
- |--------------------------------------------------------------------------
33
- |
34
- | The type of fulltext search, either "default" or "native".
35
- | Native fulltext search for InnoDB tables is only supported by MySQL versions >= 5.6.
36
- |
37
- */
29
+ /*
30
+ |--------------------------------------------------------------------------
31
+ | Fulltext Search
32
+ |--------------------------------------------------------------------------
33
+ |
34
+ | The type of fulltext search, either "default" or "native".
35
+ | Native fulltext search for InnoDB tables is only supported by MySQL versions >= 5.6.
36
+ |
37
+ */
38
38
39
- 'fulltext ' => 'default ' ,
39
+ 'fulltext ' => 'default ' ,
40
40
41
- /*
42
- |--------------------------------------------------------------------------
43
- | Fulltext Search Score Column
44
- |--------------------------------------------------------------------------
45
- |
46
- | The name of the column containing the fulltext search score in native
47
- | fulltext search mode.
48
- |
49
- */
41
+ /*
42
+ |--------------------------------------------------------------------------
43
+ | Fulltext Search Score Column
44
+ |--------------------------------------------------------------------------
45
+ |
46
+ | The name of the column containing the fulltext search score in native
47
+ | fulltext search mode.
48
+ |
49
+ */
50
50
51
- 'fulltext_score_column ' => '_score ' ,
51
+ 'fulltext_score_column ' => '_score ' ,
52
52
53
- /*
54
- |--------------------------------------------------------------------------
55
- | Errors
56
- |--------------------------------------------------------------------------
57
- |
58
- | These arrays define the default error messages and the corresponding http
59
- | status codes.
60
- |
61
- */
53
+ /*
54
+ |--------------------------------------------------------------------------
55
+ | Errors
56
+ |--------------------------------------------------------------------------
57
+ |
58
+ | These arrays define the default error messages and the corresponding http
59
+ | status codes.
60
+ |
61
+ */
62
62
63
- 'errors ' => [
64
- 'ResourceNotFound ' => ['http_code ' => 404 , 'message ' => 'The requested resource could not be found but may be available again in the future. ' ],
65
- 'InternalError ' => ['http_code ' => 500 , 'message ' => 'Internal server error ' ],
66
- ' Unauthorized ' => ['http_code ' => 401 , 'message ' => 'Authentication is required and has failed or has not yet been provided ' ],
67
- 'Forbidden ' => ['http_code ' => 403 , 'message ' => 'You don \'t have enough permissions to access this resource ' ],
68
- 'ToManyRequests ' => ['http_code ' => 429 , 'message ' => 'You have sent too many requests in a specific timespan ' ],
69
- 'InvalidInput ' => ['http_code ' => 400 , 'message ' => 'The submited data is not valid ' ],
70
- 'InvalidQueryParameter ' => ['http_code ' => 400 , 'message ' => 'Invalid parameter ' ],
71
- 'UnknownResourceField ' => ['http_code ' => 400 , 'message ' => 'Unknown field ":field" ' ],
72
- 'UnknownResourceRelation ' => ['http_code ' => 400 , 'message ' => 'Unknown relation ":relation" ' ]
73
- ],
63
+ 'errors ' => [
64
+ 'ResourceNotFound ' => ['http_code ' => 404 , 'message ' => 'The requested resource could not be found but may be available again in the future. ' ],
65
+ 'InternalError ' => ['http_code ' => 500 , 'message ' => 'Internal server error ' ],
66
+ ' Unauthorized ' => ['http_code ' => 401 , 'message ' => 'Authentication is required and has failed or has not yet been provided ' ],
67
+ 'Forbidden ' => ['http_code ' => 403 , 'message ' => 'You don \'t have enough permissions to access this resource ' ],
68
+ 'ToManyRequests ' => ['http_code ' => 429 , 'message ' => 'You have sent too many requests in a specific timespan ' ],
69
+ 'InvalidInput ' => ['http_code ' => 400 , 'message ' => 'The submited data is not valid ' ],
70
+ 'InvalidQueryParameter ' => ['http_code ' => 400 , 'message ' => 'Invalid parameter ' ],
71
+ 'UnknownResourceField ' => ['http_code ' => 400 , 'message ' => 'Unknown field ":field" ' ],
72
+ 'UnknownResourceRelation ' => ['http_code ' => 400 , 'message ' => 'Unknown relation ":relation" ' ],
73
+ ],
74
74
75
- /*
76
- |--------------------------------------------------------------------------
77
- | Predefined Errors
78
- |--------------------------------------------------------------------------
79
- |
80
- | Link the errors the api handler uses internaly with the the respective
81
- | error above.
82
- |
83
- */
75
+ /*
76
+ |--------------------------------------------------------------------------
77
+ | Predefined Errors
78
+ |--------------------------------------------------------------------------
79
+ |
80
+ | Link the errors the api handler uses internaly with the the respective
81
+ | error above.
82
+ |
83
+ */
84
84
85
- 'internal_errors ' => [
86
- 'UnknownResourceField ' => 'UnknownResourceField ' ,
87
- 'UnknownResourceRelation ' => 'UnknownResourceRelation ' ,
88
- 'UnsupportedQueryParameter ' => 'UnsupportedQueryParameter ' ,
89
- 'InvalidQueryParameter ' => 'InvalidQueryParameter '
90
- ]
91
-
92
- ];
85
+ 'internal_errors ' => [
86
+ 'UnknownResourceField ' => 'UnknownResourceField ' ,
87
+ 'UnknownResourceRelation ' => 'UnknownResourceRelation ' ,
88
+ 'UnsupportedQueryParameter ' => 'UnsupportedQueryParameter ' ,
89
+ 'InvalidQueryParameter ' => 'InvalidQueryParameter ' ,
90
+ ],
91
+ ];
0 commit comments