I'm using the Loopback REST Client for admin-on-rest successfully with no issues. It's easy to use and works very well for the standard CRUD operations, however I quickly found myself in the need of using non-conventional REST calls like the following:
http://www.remoteurl.com/api/getUsersWithRolesInfo
I also want in some situations to make use of Loopback's in-URL filters, like such:
http://www.remoteurl.com/api/Users?filter=[include][profile]&filter=[include][posts]
How can I achieve this with the <Resource />
component?
Initially I thought of modifying the REST client in order to map the above end points. However the REST client maps its calls to types like GET_ONE
, GET_MANY
, etc.. while what I want to map is an URL (like ../getUserWithRolesInfo
).
Thanks for your help.
Component does have a filter property, so the function above seems to be manipulating its query property, so if that is the place where I should put it, I would need to create a custom
component, right? – Chakir Mrabet Jul 09 '17 at 16:04