<?php
namespace App\Entity;
use ApiPlatform\Core\Annotation\ApiResource;
use App\Repository\FaqQuestionRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* The field is the rank of the question
* The value is the title of the text
* @ORM\Entity(repositoryClass=FaqQuestionRepository::class)
* @ApiResource(
* denormalizationContext={
* "groups"={"faq_question:write"}
* },
* normalizationContext={
* "groups"={"faq_question:read"}
* },
* collectionOperations={
* "post"={"security"="is_granted('ROLE_ADMIN')"},
* "get"={"security"="is_granted('ROLE_USER')"},
* },
* itemOperations={
* "get"={"security"="is_granted('ROLE_USER')"},
* "delete"={"security"="is_granted('ROLE_ADMIN')"},
* "patch"={"security"="is_granted('ROLE_ADMIN')"},
* },
* )
*/
class FaqQuestion extends TvConfiguration
{
}