2017 © Pedro Peláez
 

library pomm-api-platform

Api platform bridge for pomm

image

hbsresearch/pomm-api-platform

Api platform bridge for pomm

  • Thursday, May 31, 2018
  • by rdavaillaud
  • Repository
  • 2 Watchers
  • 0 Stars
  • 337 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 4714 % Grown

The README.md

Pomm bridge for Api platform

Build Status, (*1)

Use Pomm with Api platform., (*2)

Filters

Search Filter

The search filter supports:, (*3)

  • 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., (*4)

Add an entry in services.yml:, (*5)

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:, (*6)

resources:
    AppBundle\Entity\Book:
        collectionOperations:
            get:
                filters: ['book.search']

The Versions

31/05 2018

dev-master

9999999-dev

Api platform bridge for pomm

  Sources   Download

MIT

The Requires

 

by Avatar sanpi

29/05 2018

v1.0.1

1.0.1.0

Api platform bridge for pomm

  Sources   Download

MIT

The Requires

 

by Avatar sanpi

29/05 2018

v1.0

1.0.0.0

Api platform bridge for pomm

  Sources   Download

MIT

The Requires

 

by Avatar sanpi