meteor-rest icon indicating copy to clipboard operation
meteor-rest copied to clipboard

Access url & body parameters in `ValidatedMethod`

Open asafshen opened this issue 8 years ago • 2 comments

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

asafshen avatar Nov 29 '16 16:11 asafshen

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 avatar Apr 20 '17 10:04 brylie

You might also look in to the documentation about getArgsFromRequest.

brylie avatar Apr 20 '17 10:04 brylie