Last active
September 17, 2018 09:49
-
-
Save piotrbrzezina/ec0f04b09420af6773822fa874f9d269 to your computer and use it in GitHub Desktop.
Flashcard step 6 (filter)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ... | |
use ApiPlatform\Core\Annotation\ApiFilter; | |
/** | |
* // ... | |
* @ApiFilter( | |
* SearchFilter::class, | |
* properties={ | |
* "question": "partial", | |
* "answer": "partial" | |
* } | |
* ) | |
*/ | |
class Flashcard | |
{ | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment