Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

api view wrapper django

from rest_framework.decorators import api_view

@api_view()
def hello_world(request):
    return Response({"message": "Hello, world!"})
Source by www.django-rest-framework.org #
 
PREVIOUS NEXT
Tagged: #api #view #wrapper #django
ADD COMMENT
Topic
Name
9+3 =