How to write an API in 3 lines of code with Django REST framework

With only 3 lines of code, you can create a ready-to-use API endpoint with Django REST Framework.


This is a companion discussion topic for the original entry at https://blog.crowdbotics.com/how-to-write-an-api-in-3-lines-of-code-with-django-rest-framework/