File tree Expand file tree Collapse file tree 4 files changed +19
-8
lines changed
Expand file tree Collapse file tree 4 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 5454#
5555# ===========================================
5656
57- version : " 3.8"
58-
5957# Configures the services
6058services :
6159
Original file line number Diff line number Diff line change 5454#
5555# ===========================================
5656
57- version : " 3.8"
58-
5957# Configures the services
6058services :
6159
Original file line number Diff line number Diff line change 11<?php
22
3- declare (strict_types=1 );
4-
53/*
64 * This file is part of the ixnode/php-api-version-bundle project.
75 *
119 * file that was distributed with this source code.
1210 */
1311
12+ declare (strict_types=1 );
13+
1414namespace Ixnode \PhpApiVersionBundle \ApiPlatform \Resource ;
1515
1616use ApiPlatform \Metadata \Get ;
2727 */
2828#[Get(
2929 openapiContext: [
30- 'description ' => VersionRoute::DESCRIPTION
30+ 'summary ' => VersionRoute::SUMMARY_GET ,
31+ 'description ' => VersionRoute::DESCRIPTION_GET ,
32+ 'responses ' => [
33+ '200 ' => [
34+ 'description ' => 'Version resource ' ,
35+ 'content ' => [
36+ 'application/json ' => [
37+ 'schema ' => [
38+ '$ref ' => "#/components/schemas/Version "
39+ ]
40+ ]
41+ ]
42+ ]
43+ ]
3144 ],
3245 provider: VersionProvider::class
3346)]
Original file line number Diff line number Diff line change @@ -26,5 +26,7 @@ final class VersionRoute extends BaseRoute
2626{
2727 final public const PROPERTIES = [];
2828
29- public const DESCRIPTION = "# Version resource \nRetrieves a Version resource. " ;
29+ public const SUMMARY_GET = 'Retrieves a Version resource ' ;
30+
31+ public const DESCRIPTION_GET = 'This endpoint is used to obtain the versions of this application. ' ;
3032}
You can’t perform that action at this time.
0 commit comments