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

api-platform / core / 13175309672

06 Feb 2025 09:04AM UTC coverage: 7.663% (-0.2%) from 7.841%
13175309672

push

github

web-flow
fix: ensure template files have a tpl file extension (#6826) (#6829)

2 of 5 new or added lines in 4 files covered. (40.0%)

3676 existing lines in 122 files now uncovered.

13073 of 170593 relevant lines covered (7.66%)

27.3 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
use ApiPlatform\Metadata\UrlGeneratorInterface;
4
use Illuminate\Auth\Access\AuthorizationException;
5
use Illuminate\Auth\AuthenticationException;
6

7
return [
×
8
    'title' => 'API Platform',
×
9
    'description' => 'My awesome API',
×
10
    'version' => '1.0.0',
×
11

12
    'routes' => [
×
13
        // Global middleware applied to every API Platform routes
×
14
        // 'middleware' => []
×
15
    ],
×
16

17
    'resources' => [
×
18
        app_path('Models'),
×
19
    ],
×
20

21
    'formats' => [
×
22
        'jsonld' => ['application/ld+json'],
×
23
        //'jsonapi' => ['application/vnd.api+json'],
×
24
        //'csv' => ['text/csv'],
×
25
    ],
×
26

27
    'patch_formats' => [
×
28
        'json' => ['application/merge-patch+json'],
×
29
    ],
×
30

31
    'docs_formats' => [
×
32
        'jsonld' => ['application/ld+json'],
×
33
        //'jsonapi' => ['application/vnd.api+json'],
34
        'jsonopenapi' => ['application/vnd.openapi+json'],
×
35
        'html' => ['text/html'],
×
36
    ],
×
37

38
    'error_formats' => [
×
39
        'jsonproblem' => ['application/problem+json'],
×
40
    ],
×
41

42
    'defaults' => [
×
43
        'pagination_enabled' => true,
×
44
        'pagination_partial' => false,
×
45
        'pagination_client_enabled' => false,
×
46
                'pagination_client_items_per_page' => false,
×
47
                'pagination_client_partial' => false,
×
48
                'pagination_items_per_page' => 30,
×
49
                'pagination_maximum_items_per_page' => 30,
×
50
        'route_prefix' => '/api',
×
51
        'middleware' => [],
×
52
    ],
×
53

54
        'pagination' => [
×
55
                'page_parameter_name' => 'page',
×
56
                'enabled_parameter_name' => 'pagination',
×
57
                'items_per_page_parameter_name' => 'itemsPerPage',
×
58
                'partial_parameter_name' => 'partial',
×
59
        ],
×
60

61
    'graphql' => [
×
62
        'enabled' => false,
×
63
        'nesting_separator' => '__',
×
64
        'introspection' => ['enabled' => true]
×
65
    ],
×
66

67
    'exception_to_status' => [
×
68
        AuthenticationException::class => 401,
×
69
        AuthorizationException::class => 403
×
70
    ],
×
71

72
    'swagger_ui' => [
×
73
        'enabled' => true,
×
74
        //'apiKeys' => [
×
75
        //    'api' => [
×
76
        //        'type' => 'Bearer',
×
77
        //        'name' => 'Authentication Token',
×
78
        //        'in' => 'header'
×
79
        //    ]
×
80
        //],
×
81
        //'oauth' => [
×
82
        //    'enabled' => true,
×
83
        //    'type' => 'oauth2',
×
84
        //    'flow' => 'authorizationCode',
×
85
        //    'tokenUrl' => '',
×
86
        //    'authorizationUrl' =>'',
×
87
        //    'refreshUrl' => '',
×
88
        //    'scopes' => ['scope1' => 'Description scope 1'],
×
89
        //    'pkce' => true
×
90
        //],
×
91
        //'license' => [
×
UNCOV
92
        //    'name' => 'Apache 2.0',
×
93
        //    'url' => 'https://www.apache.org/licenses/LICENSE-2.0.html',
×
UNCOV
94
        //],
×
95
        //'contact' => [
×
96
        //    'name' => 'API Support',
×
97
        //    'url' => 'https://www.example.com/support',
×
98
        //    'email' => 'support@example.com',
×
99
        //],
×
UNCOV
100
    ],
×
101

UNCOV
102
    'url_generation_strategy' => UrlGeneratorInterface::ABS_PATH,
×
103

UNCOV
104
    'serializer' => [
×
UNCOV
105
        'hydra_prefix' => false,
×
UNCOV
106
        // 'datetime_format' => \DateTimeInterface::RFC3339
×
UNCOV
107
    ]
×
UNCOV
108
];
×
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