Skip to content
Snippets Groups Projects
Commit 3c96509d authored by Tobias Gross-Vogt's avatar Tobias Gross-Vogt
Browse files

disabled get-attendees-by-course till there is a use case and privacy issues are clarified

parent 66856ade
No related branches found
No related tags found
No related merge requests found
Pipeline #199466 passed
......@@ -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
{
......
......@@ -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());
// }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment