swh.web.api.parsers module#

class swh.web.api.parsers.YAMLParser[source]#

Bases: BaseParser

Parses YAML-serialized data (more robust version than djangorestframork-yaml).

media_type = 'application/yaml'#
parse(stream, media_type=None, parser_context=None)[source]#

Parses the incoming bytestream as YAML and returns the resulting data.