Skip to content

Commit 2e8300a

Browse files
committedDec 12, 2024
ISSUE-337: move to bundle file
1 parent 1986e45 commit 2e8300a

File tree

2 files changed

+18
-25
lines changed

2 files changed

+18
-25
lines changed
 

‎src/OpenApiAnnotations.php

-25
This file was deleted.

‎src/PhpListRestBundle.php

+18
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,30 @@
55
namespace PhpList\RestBundle;
66

77
use Symfony\Component\HttpKernel\Bundle\Bundle;
8+
use OpenApi\Attributes as OA;
9+
810

911
/**
1012
* This bundle provides the REST API for phpList.
1113
*
1214
* @author Oliver Klee <oliver@phplist.com>
1315
*/
16+
#[OA\Info(
17+
version: "1.0.0",
18+
description: "This is the OpenAPI documentation for My API.",
19+
title: "My API Documentation",
20+
contact: new OA\Contact(
21+
email: "support@phplist.com"
22+
),
23+
license: new OA\License(
24+
name: "AGPL-3.0-or-later",
25+
url: "https://www.gnu.org/licenses/agpl.txt"
26+
)
27+
)]
28+
#[OA\Server(
29+
url: "https://www.phplist.com/api/v2",
30+
description: "Production server"
31+
)]
1432
class PhpListRestBundle extends Bundle
1533
{
1634
}

0 commit comments

Comments
 (0)