swh.web.api.renderers module

class swh.web.api.renderers.YAMLRenderer[source]

Bases: rest_framework.renderers.BaseRenderer

Renderer which serializes to YAML.

media_type = 'application/yaml'
format = 'yaml'
charset = 'utf-8'
ensure_ascii = False
default_flow_style = False
render(data, accepted_media_type=None, renderer_context=None)[source]

Renders data into serialized YAML.