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

api-platform / core / 11182119487

04 Oct 2024 02:50PM UTC coverage: 7.837% (+0.4%) from 7.441%
11182119487

push

github

soyuka
Merge 4.0

0 of 266 new or added lines in 25 files covered. (0.0%)

9900 existing lines in 360 files now uncovered.

12939 of 165109 relevant lines covered (7.84%)

27.02 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' => [
×
NEW
13
        // Global middleware applied to every API Platform routes
×
NEW
14
        // 'middleware' => []
×
UNCOV
15
    ],
×
16

UNCOV
17
    'resources' => [
×
UNCOV
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
    ],
×
92

93
    'url_generation_strategy' => UrlGeneratorInterface::ABS_PATH,
×
94

95
    'serializer' => [
×
96
        'hydra_prefix' => false,
×
97
        // 'datetime_format' => \DateTimeInterface::RFC3339
×
98
    ]
×
99
];
×
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