Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/api_platform.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: CI
name: Distribution update

on:
push:
tags:
- v*

env:
GH_TOKEN: ${{ github.token }}

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion docs/adr/0005-refactor-state-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ For API Platform 3, we refactored the whole metadata susbsytem to be more flexib
This led to the refactoring of the two main interfaces allowing to plug a data source in API Platform: the state provider and the state processor interfaces.

Leveraging these new interfaces, it should be possible to simplify the code base and to remove most code duplication by transforming most of the code currently
stored in the kernel event listeners and in the GraphQL resolvers in dedicated state processors and state providers.
stored in the kernel event listeners and in the GraphQL resolvers in dedicated state processors and state providers. This is quite close to what @alanpoulain proposed in 2019 at https://github.com/api-platform/core/pull/2978 although at that time we needed to refactor the subresource system before tackling this issue.

## Decision Outcome

Expand Down
5 changes: 5 additions & 0 deletions src/Laravel/ApiPlatformProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,11 @@ public function register(): void
oAuthRefreshUrl: $config->get('api-platform.swagger_ui.oauth.refreshUrl', null),
oAuthScopes: $config->get('api-platform.swagger_ui.oauth.scopes', []),
apiKeys: $config->get('api-platform.swagger_ui.apiKeys', []),
contactName: $config->get('api-platform.swagger_ui.contact.name', ''),
contactUrl: $config->get('api-platform.swagger_ui.contact.url', ''),
contactEmail: $config->get('api-platform.swagger_ui.contact.email', ''),
licenseName: $config->get('api-platform.swagger_ui.license.name', ''),
licenseUrl: $config->get('api-platform.swagger_ui.license.url', ''),
);
});

Expand Down
12 changes: 11 additions & 1 deletion src/Laravel/config/api-platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'title' => 'API Platform',
'description' => 'My awesome API',
'version' => '1.0.0',
'show_webby' => true,

'routes' => [
// Global middleware applied to every API Platform routes
Expand Down Expand Up @@ -87,7 +88,16 @@
// 'refreshUrl' => '',
// 'scopes' => ['scope1' => 'Description scope 1'],
// 'pkce' => true
//]
//],
//'license' => [
// 'name' => 'Apache 2.0',
// 'url' => 'https://www.apache.org/licenses/LICENSE-2.0.html',
//],
//'contact' => [
// 'name' => 'API Support',
// 'url' => 'https://www.example.com/support',
// 'email' => '[email protected]',
//],
],

'url_generation_strategy' => UrlGeneratorInterface::ABS_PATH,
Expand Down
2 changes: 2 additions & 0 deletions src/Laravel/resources/views/swagger-ui.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<header>
<a id="logo" href="https://api-platform.com/"><img src="/vendor/api-platform/logo-header.svg" alt="API Platform"></a>
</header>
@if (config('api-platform.show_webby', true))
<div class="web calm"><img src="/vendor/api-platform/web.png"></div>
<svg class="webby_car" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1889.21 582.3">
<g id="Calque_1">
Expand Down Expand Up @@ -209,6 +210,7 @@
</g>
</g>
</svg>
@endif

<div id="swagger-ui" class="api-platform"></div>
<script src="/vendor/api-platform/swagger-ui/swagger-ui-bundle.js"></script>
Expand Down
Loading