api: add missing docstring

This commit is contained in:
Marek Marczykowski-Górecki 2017-06-27 02:00:47 +02:00
parent 3d803acfde
commit 291a338e73
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -51,6 +51,8 @@ def method(name, *, no_payload=False, endpoints=None, **classifiers):
:param str name: qrexec rpc method name
:param bool no_payload: if :py:obj:`True`, will barf on non-empty payload; \
also will not pass payload at all to the method
:param iterable endpoints: if specified, method serve multiple API calls
generated by replacing `{endpoint}` with each value in this iterable
The expected function method should have one argument (other than usual
*self*), ``untrusted_payload``, which will contain the payload.