We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1986e45 commit 2e8300aCopy full SHA for 2e8300a
src/OpenApiAnnotations.php
src/PhpListRestBundle.php
@@ -5,12 +5,30 @@
5
namespace PhpList\RestBundle;
6
7
use Symfony\Component\HttpKernel\Bundle\Bundle;
8
+use OpenApi\Attributes as OA;
9
+
10
11
/**
12
* This bundle provides the REST API for phpList.
13
*
14
* @author Oliver Klee <oliver@phplist.com>
15
*/
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
32
class PhpListRestBundle extends Bundle
33
{
34
}
0 commit comments