Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Access url & body parameters in ValidatedMethod #127

Open
asafshen opened this issue Nov 29, 2016 · 2 comments
Open

Access url & body parameters in ValidatedMethod #127

asafshen opened this issue Nov 29, 2016 · 2 comments

Comments

@asafshen
Copy link

hey,
Im using simple:rest-method-mixin to export some method outside the app.
Im using it as a webhook (some service posts data to the method url (inside restOptions).

Can someone give an example about how can I access that data? I have not find any in the docs/issues..

Thanks

@brylie
Copy link

brylie commented Apr 20, 2017

Does your method accept any arguments? It might be that the payload is passed in as an additional argument. Try checking if there is any (additional) argument available by assigning it in the method definition and debugging.

@brylie
Copy link

brylie commented Apr 20, 2017

You might also look in to the documentation about getArgsFromRequest.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants