Resource

pyrs.resource.resource.DELETE(_func=None, **kwargs)[source]

Decorator function Ensure the given function will be available for DELETE method

pyrs.resource.resource.FORWARD(_func=None, path='/', forward=None)[source]

Ensure forwarding the request to an other resource

pyrs.resource.resource.GET(_func=None, **kwargs)[source]

Decorator function Ensure the given function will be available for GET method

pyrs.resource.resource.PATCH(_func=None, **kwargs)[source]

Decorator function Ensure the given function will be available for PATCH method

pyrs.resource.resource.POST(_func=None, **kwargs)[source]

Decorator function Ensure the given function will be available for POST method

pyrs.resource.resource.PUT(_func=None, **kwargs)[source]

Decorator function Ensure the given function will be available for PUT method

pyrs.resource.resource.RPC(_func=None, **kwargs)[source]

Decorator function Ensure the given function will be available for POST method This action tend to use as Remote procedure call

pyrs.resource.resource.endpoint(_func=None, path='/', **kwargs)[source]

Deadly simple decorator, add options to the given function. Can be user with or without any keyword arguments. The default options would contain the path and the name of the function. Based on configuration: conf.decorate