Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Searching #77

Open
lucasmonstrox opened this issue Oct 27, 2014 · 4 comments
Open

Searching #77

lucasmonstrox opened this issue Oct 27, 2014 · 4 comments

Comments

@lucasmonstrox
Copy link

Hello, it's possible to search using apiglity ? Using query string params ? For example, search user list by name, birthday, etc ? Automatic search

@TomHAnderson
Copy link

Hi joaolucas89,

the zf-apigility-doctrine module contains filters like you describe. Read the documentation here for details: https://github.com/zfcampus/zf-apigility-doctrine

The filters are a good idea in theory but in practice it's not as beneficial. For instance, you don't want to allow your users to query on just anything. So, I'm pulling them into their own repository so you can apply the filters to any Query Builder object.

Stay tuned and/or come contribute,
Tom

@lucasmonstrox
Copy link
Author

zf-apigility-doctrine provide collection attributes like total, page_count, limit ?

@Wilt
Copy link

Wilt commented Feb 25, 2015

If your collection is a Zend\Paginator\Paginator instance you will have full pagination options. You can read on this here in the documentationof the zf-rest module.

If you make your collection to an instance of Countable then the Hal plugin will automatically count your total items and add a total_items key in the rendered result. This happens because the Hal plugin is checking this while rendering the collection.

@michalbundyra
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools; a new issue has been opened at laminas-api-tools/api-tools#60.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants