Skip to content

Instantly share code, notes, and snippets.

@piotrbrzezina
Last active September 9, 2018 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piotrbrzezina/55a73c12a7bea2af9b81cd860cb81053 to your computer and use it in GitHub Desktop.
Save piotrbrzezina/55a73c12a7bea2af9b81cd860cb81053 to your computer and use it in GitHub Desktop.
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