'Django DRF - Is it possible to have a pre-defined form in the browsable API using function-based views?

I have an API built with Django DRF. I'm using function based views and I was wondering if it's possible to add a defined form (based on the model serializer) for the browsable API?

I want to turn this (the browsable API I get with function based views): enter image description here

Into this (what I get with class based views): enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source