dev-master
9999999-dev
The Requires
- php >=5.3.0
The Development Requires
1.0-beta
1.0.0.0-beta
The Requires
- php >=5.3.0
The Development Requires
Wallogit.com
2017 © Pedro Peláez
This framework automatically fits a facade layer around your SQL tables and provides very configurable and powerful API endpoints. Just specify the desired behavior in a json file for each resource and you're ready to go., (*1)
Define what is possible to be read back, what is read back by default, how it will look, etc., (*2)
Require this package with composer:, (*3)
composer require torchline/frest, (*4)
Function names: gt, gte, lt, lte, in, like, (*5)
?username=like(FullMetal~) - starts with
?money=gt(50) - greater than
?hair=in(blonde,black,red) - is one of
Partial objects:, (*6)
?fields=id,username,email - read only these fields back
?fields=* - read all fields back
(if no fields specified, it goes to default)
?fields=name,owner(id, firstName, lastName) - do partial reads on child objects
Miscellaneous:, (*7)
suppress_http_error_codes=true - make request always return 200 with actual http code embeded in response