API updadte

This commit is contained in:
2025-11-08 23:44:33 +01:00
parent 81374cc659
commit 5835eb15ed
29 changed files with 4066 additions and 54 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Tests\Api;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class ApiDocumentationTest extends WebTestCase
{
public function testSwaggerUIAccessible(): void
{
$client = static::createClient();
// Test: Swagger UI ist öffentlich zugänglich
$client->request('GET', '/api/docs.html');
$this->assertResponseIsSuccessful();
}
public function testOpenAPIJsonLdAccessible(): void
{
$client = static::createClient();
// Test: OpenAPI JSON-LD ist öffentlich zugänglich
$client->request('GET', '/api/docs.jsonld');
$this->assertResponseIsSuccessful();
}
}