php-crud-api icon indicating copy to clipboard operation
php-crud-api copied to clipboard

Suggestion: map foo/:id/bar to foo/:id?join=bar

Open tafelnl opened this issue 6 years ago • 1 comments

Just started using this library and already love it too much. ❤️

As title states. This follows the more common approaches and makes a little bit more sense.

A minor thing, and maybe hard the implement in the backend (didn't take a look at it (yet) to be honest). So don't worry about it too much, just a little suggestion.

tafelnl avatar Jan 14 '19 17:01 tafelnl

Thank you for your kind words. You may add this functionality by implementing a rewriterule. Note that there can be multiple join paths in the query, so it wont be an ideal match for a rewriterule (you will have to model multiple join paths somehow).

mevdschee avatar Jan 14 '19 18:01 mevdschee