Api View Wrapper Django

[Solved] Api View Wrapper Django | Python Frameworks Django - Code Explorer | www.yomemimo.com
Question : api view wrapper django

Answered by : shovi

from rest_framework.decorators import api_view
@api_view()
def hello_world(request): return Response({"message": "Hello, world!"})

Source : https://www.django-rest-framework.org/api-guide/views/ | Last Update : Thu, 26 Aug 21

Answers related to api view wrapper django

Code Explorer Popular Question For Python Frameworks Django