deckhand.control.base module¶
-
class
deckhand.control.base.
BaseResource
[source]¶ Bases:
object
Base resource class for implementing API resources.
-
from_yaml
(req, expect_list=True, allow_empty=False)[source]¶ Reads and converts YAML-formatted request body into a dict or list of dicts.
Parameters: - req – Falcon Request object.
- expect_list – Whether to expect a list or an object.
- allow_empty – Whether the request body can be empty.
Returns: List of dicts if
expect_list
is True or else a dict.
-
no_authentication_methods
= []¶
-