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

api-platform / core / 13200284839

07 Feb 2025 12:56PM UTC coverage: 0.0% (-8.2%) from 8.164%
13200284839

Pull #6952

github

web-flow
Merge 519fbf8cc into 62377f880
Pull Request #6952: fix: errors retrieval and documentation

0 of 206 new or added lines in 17 files covered. (0.0%)

10757 existing lines in 366 files now uncovered.

0 of 47781 relevant lines covered (0.0%)

0.0 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
    'show_webby' => true,
×
12

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

19
    'resources' => [
×
20
        app_path('Models'),
×
21
    ],
×
22

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

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

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

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

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

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

63
    'graphql' => [
×
64
        'enabled' => false,
×
65
        'nesting_separator' => '__',
×
66
        'introspection' => ['enabled' => true],
×
67
        'max_query_complexity' => 500,
×
68
        'max_query_depth' => 200
×
69
    ],
×
70

71
    'exception_to_status' => [
×
72
        AuthenticationException::class => 401,
×
73
        AuthorizationException::class => 403
×
74
    ],
×
75

76
    'swagger_ui' => [
×
77
        'enabled' => true,
×
78
        //'apiKeys' => [
×
79
        //    'api' => [
×
80
        //        'type' => 'Bearer',
×
81
        //        'name' => 'Authentication Token',
×
82
        //        'in' => 'header'
×
83
        //    ]
×
84
        //],
×
85
        //'oauth' => [
×
86
        //    'enabled' => true,
×
87
        //    'type' => 'oauth2',
×
88
        //    'flow' => 'authorizationCode',
×
89
        //    'tokenUrl' => '',
×
90
        //    'authorizationUrl' =>'',
×
91
        //    'refreshUrl' => '',
×
92
        //    'scopes' => ['scope1' => 'Description scope 1'],
×
93
        //    'pkce' => true
×
94
        //],
×
95
        //'license' => [
×
96
        //    'name' => 'Apache 2.0',
×
97
        //    'url' => 'https://www.apache.org/licenses/LICENSE-2.0.html',
×
98
        //],
×
99
        //'contact' => [
×
100
        //    'name' => 'API Support',
×
101
        //    'url' => 'https://www.example.com/support',
×
102
        //    'email' => 'support@example.com',
×
103
        //],
×
104
        //'http_auth' => [
×
105
        //    'Personal Access Token' => [
×
106
        //        'scheme' => 'bearer',
×
107
        //        'bearerFormat' => 'JWT'
×
108
        //    ]
×
109
        //]
×
110
    ],
×
111

112
    // 'openapi' => [
113
    //     'tags' => []
114
    // ],
115

UNCOV
116
    'url_generation_strategy' => UrlGeneratorInterface::ABS_PATH,
×
117

118
    'serializer' => [
×
119
        'hydra_prefix' => false,
×
120
        // 'datetime_format' => \DateTimeInterface::RFC3339
×
121
    ]
×
122
];
×
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

© 2025 Coveralls, Inc