All Projects → pomm-project → pomm-api-platform

pomm-project / pomm-api-platform

Licence: MIT license
No description, website, or topics provided.

Programming Languages

PHP
23972 projects - #3 most used programming language
Gherkin
971 projects
Makefile
30231 projects

Pomm bridge for Api platform

Build Status

Use Pomm with Api platform.

Filters

Search Filter

The search filter supports:

  • partial strategy uses LIKE %text% to search for fields that containing the text.
  • start strategy uses LIKE text% to search for fields that starts with text.
  • end strategy uses LIKE %text to search for fields that ends with text.
  • word_start strategy uses LIKE text% OR LIKE % text% to search for fields that contains the word starting with text.

Prepend the letter i to the filter if you want it to be case insensitive. For example ipartial or iexact.

Add an entry in services.yml:

services:
    app.book.search_filter:
        parent:    'api_platform.pomm.search_filter'
        arguments: [ { 'title': 'exact', 'description': 'partial'} ]
        tags:      [ { name: 'api_platform.filter', id: 'book.search' } ]

And in resources.yml use the service filter:

resources:
    AppBundle\Entity\Book:
        collectionOperations:
            get:
                filters: ['book.search']
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].