jpadilla / django-rest-framework-yaml

YAML support for Django REST Framework
http://jpadilla.github.io/django-rest-framework-yaml
BSD 3-Clause "New" or "Revised" License
31 stars 18 forks source link

Is it possible to get response in json #15

Open ivishalvarshney opened 2 years ago

ivishalvarshney commented 2 years ago

Some consumers of API required JSON in response. So this module should support different type of output/responses ( especially in json )

stefan6419846 commented 2 years ago

You should be able to set a different renderer for the output as well, or even multiple renderers (see https://www.django-rest-framework.org/api-guide/renderers/#ordering-of-renderer-classes). This is nothing which should be specific to this package.