We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 315ea7b commit 88f5707Copy full SHA for 88f5707
api/src/Enum/BookCondition.php
@@ -4,23 +4,11 @@
4
5
namespace App\Enum;
6
7
-use ApiPlatform\Metadata\ApiResource;
8
-use ApiPlatform\Metadata\Get;
9
-use ApiPlatform\Metadata\GetCollection;
10
-
11
/**
12
* A list of possible conditions for the item.
13
*
14
* @see https://schema.org/OfferItemCondition
15
*/
16
-#[ApiResource(
17
- shortName: 'BookCondition',
18
- types: ['https://schema.org/OfferItemCondition'],
19
- operations: [
20
- new GetCollection(provider: BookCondition::class . '::getCases'),
21
- new Get(provider: BookCondition::class . '::getCase'),
22
- ],
23
-)]
24
enum BookCondition: string
25
{
26
use EnumApiResourceTrait;
0 commit comments