• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

api-platform / core / 13998954715

21 Mar 2025 06:57PM UTC coverage: 8.514% (+0.07%) from 8.443%
13998954715

push

github

web-flow
fix(laravel): defer autoconfiguration (#7040)

fixes #7033

0 of 106 new or added lines in 6 files covered. (0.0%)

2 existing lines in 2 files now uncovered.

13382 of 157180 relevant lines covered (8.51%)

22.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Laravel/config/api-platform.php
1
<?php
2

3
/*
4
 * This file is part of the API Platform project.
5
 *
6
 * (c) Kévin Dunglas <dunglas@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11

12
declare(strict_types=1);
13

14
use ApiPlatform\Metadata\UrlGeneratorInterface;
15
use Illuminate\Auth\Access\AuthorizationException;
16
use Illuminate\Auth\AuthenticationException;
17

18
return [
×
19
    'title' => 'API Platform',
×
20
    'description' => 'My awesome API',
×
21
    'version' => '1.0.0',
×
22
    'show_webby' => true,
×
23

24
    'routes' => [
×
25
        'domain' => null,
×
26
        // Global middleware applied to every API Platform routes
×
27
        // 'middleware' => []
×
28
    ],
×
29

30
    'resources' => [
×
31
        app_path('Models'),
×
32
    ],
×
33

34
    'formats' => [
×
35
        'jsonld' => ['application/ld+json'],
×
NEW
36
        // 'jsonapi' => ['application/vnd.api+json'],
×
NEW
37
        // 'csv' => ['text/csv'],
×
UNCOV
38
    ],
×
39

40
    'patch_formats' => [
×
41
        'json' => ['application/merge-patch+json'],
×
42
    ],
×
43

44
    'docs_formats' => [
×
45
        'jsonld' => ['application/ld+json'],
×
46
        // 'jsonapi' => ['application/vnd.api+json'],
47
        'jsonopenapi' => ['application/vnd.openapi+json'],
×
48
        'html' => ['text/html'],
×
49
    ],
×
50

51
    'error_formats' => [
×
52
        'jsonproblem' => ['application/problem+json'],
×
53
    ],
×
54

55
    'defaults' => [
×
56
        'pagination_enabled' => true,
×
57
        'pagination_partial' => false,
×
58
        'pagination_client_enabled' => false,
×
59
        'pagination_client_items_per_page' => false,
×
60
        'pagination_client_partial' => false,
×
61
        'pagination_items_per_page' => 30,
×
62
        'pagination_maximum_items_per_page' => 30,
×
63
        'route_prefix' => '/api',
×
64
        'middleware' => [],
×
65
    ],
×
66

67
    'pagination' => [
×
68
        'page_parameter_name' => 'page',
×
69
        'enabled_parameter_name' => 'pagination',
×
70
        'items_per_page_parameter_name' => 'itemsPerPage',
×
71
        'partial_parameter_name' => 'partial',
×
72
    ],
×
73

74
    'graphql' => [
×
75
        'enabled' => false,
×
76
        'nesting_separator' => '__',
×
77
        'introspection' => ['enabled' => true],
×
78
        'max_query_complexity' => 500,
×
NEW
79
        'max_query_depth' => 200,
×
80
        // 'middleware' => null
×
81
    ],
×
82

83
    'graphiql' => [
×
84
        // 'enabled' => true,
×
85
        // 'domain' => null,
×
86
        // 'middleware' => null
×
87
    ],
×
88

89
    'exception_to_status' => [
×
90
        AuthenticationException::class => 401,
×
NEW
91
        AuthorizationException::class => 403,
×
92
    ],
×
93

94
    'swagger_ui' => [
×
95
        'enabled' => true,
×
NEW
96
        // 'apiKeys' => [
×
97
        //    'api' => [
×
98
        //        'type' => 'Bearer',
×
99
        //        'name' => 'Authentication Token',
×
100
        //        'in' => 'header'
×
101
        //    ]
×
NEW
102
        // ],
×
NEW
103
        // 'oauth' => [
×
104
        //    'enabled' => true,
×
105
        //    'type' => 'oauth2',
×
106
        //    'flow' => 'authorizationCode',
×
107
        //    'tokenUrl' => '',
×
108
        //    'authorizationUrl' =>'',
×
109
        //    'refreshUrl' => '',
×
110
        //    'scopes' => ['scope1' => 'Description scope 1'],
×
111
        //    'pkce' => true
×
NEW
112
        // ],
×
NEW
113
        // 'license' => [
×
114
        //    'name' => 'Apache 2.0',
×
115
        //    'url' => 'https://www.apache.org/licenses/LICENSE-2.0.html',
×
NEW
116
        // ],
×
NEW
117
        // 'contact' => [
×
118
        //    'name' => 'API Support',
×
119
        //    'url' => 'https://www.example.com/support',
×
120
        //    'email' => 'support@example.com',
×
NEW
121
        // ],
×
NEW
122
        // 'http_auth' => [
×
123
        //    'Personal Access Token' => [
×
124
        //        'scheme' => 'bearer',
×
125
        //        'bearerFormat' => 'JWT'
×
126
        //    ]
×
NEW
127
        // ]
×
128
    ],
×
129

130
    // 'openapi' => [
131
    //     'tags' => []
132
    // ],
133

134
    'url_generation_strategy' => UrlGeneratorInterface::ABS_PATH,
×
135

136
    'serializer' => [
×
137
        'hydra_prefix' => false,
×
138
        // 'datetime_format' => \DateTimeInterface::RFC3339
×
139
    ],
×
140

141
    // we recommend using "file" or "acpu"
NEW
142
    'cache' => 'file',
×
143
];
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc