drf yasg how to add new options to response content type

Viewed 918

I have defined some interfaces when using drf-swagger, they need to specify accept parameters in order to return the content correctly. For example, I will return a file for download. Obviously, the application/JSON parameter cannot provide the correct format. Here is where I want to add the parameters I want to be able to add new options to the response content type. There may already be a solution, but I didn't find it ~

1 Answers
Related