Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Flashcard step 2 (add @ApiResource())
<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
// ...
/**
* @ApiResource()
* ...
*/
class Flashcard
{
// ...
}
<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
// ...
/**
* @ApiResource()
* ...
*/
class Lesson
{
// ...
}
<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
// ...
/**
* @ApiResource()
* ...
*/
class Subject
{
// ...
}
<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
// ...
/**
* @ApiResource()
* ...
*/
class User implements UserInterface
{
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.