Skip to content

PSR-15 middleware allowing to filter json response based on parameters provided in query string

License

Notifications You must be signed in to change notification settings

Messere/partial-response-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Partial Response PSR-15 Middleware

Purpose

Google in their Performance Tips for APIs, suggest to limit required bandwidth by filtering out unused fields in response. Their APIs support additional URL parameter fields which asks API to include only specific fields in response.

This project wraps php-value-mask library (which provides filter parsing and filtering) in PSR-15 middleware, which can be used with standards compatible frameworks.

See php-value-mask project for more details on filtering syntax.

Acknowledgements

License

MIT

About

PSR-15 middleware allowing to filter json response based on parameters provided in query string

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages