diff --git a/src/Entity/CourseAttendee.php b/src/Entity/CourseAttendee.php index 15685b68b0f98b8682994b097fd59ba8faf72d76..7b5c731a6050c186cb35c8b85cda96740bae9fd0 100644 --- a/src/Entity/CourseAttendee.php +++ b/src/Entity/CourseAttendee.php @@ -5,12 +5,12 @@ declare(strict_types=1); namespace Dbp\Relay\BaseCourseBundle\Entity; use ApiPlatform\Core\Annotation\ApiProperty; -use ApiPlatform\Core\Annotation\ApiResource; use Dbp\Relay\BaseCourseBundle\Controller\GetAttendeesByCourse; use Symfony\Component\Serializer\Annotation\Groups; /** - * @ApiResource( + * Currently disabled: + * ApiResource( * collectionOperations={ * "get" = { * "path" = "/course_attendees", @@ -57,7 +57,7 @@ use Symfony\Component\Serializer\Annotation\Groups; * "groups" = {"CourseAttendee:output"}, * "jsonld_embed_context" = true, * } - * ) + * ). */ class CourseAttendee { diff --git a/tests/ApiTest.php b/tests/ApiTest.php index 08009db28d4411a60ec8c32745ad6cd43a5726af..75a1032ed1c4ad22dc9075cf2cef4a095f2c1145 100644 --- a/tests/ApiTest.php +++ b/tests/ApiTest.php @@ -23,10 +23,10 @@ class ApiTest extends ApiTestCase $this->assertSame(Response::HTTP_UNAUTHORIZED, $response->getStatusCode()); } - public function testAttendeesByCourseNoAuth() - { - $client = self::createClient(); - $response = $client->request('GET', '/base/courses/123/attendees'); - $this->assertSame(Response::HTTP_UNAUTHORIZED, $response->getStatusCode()); - } +// public function testAttendeesByCourseNoAuth() +// { +// $client = self::createClient(); +// $response = $client->request('GET', '/base/courses/123/attendees'); +// $this->assertSame(Response::HTTP_UNAUTHORIZED, $response->getStatusCode()); +// } }