You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defines a function called when the resource is listed with or without a query. Note that hook is called for both resource and item fetch as well as prior to updates and deletes.
The rest layer always use Find because you can get an item by its id together with filters. The OnGet handler is only called when Get is explicitly called on the resource, either from one of your hooks or when checking cross resource reference.
Steps to reproduce:
OnGet
andOnFind
event hooks with a simple log message (see code below)http post :8080/simple name="testing"
)http get :8080/simple/id-from-above
)Expected Results:
See log entry for both
OnGet()
andOnFind()
hooks.Actual Results:
Only
OnFind()
is fired, notOnGet()
Sample Code:
The text was updated successfully, but these errors were encountered: