def get(self, request, format=None):
"""Returns a list of APIView features."""
an_apiview = [
'Uses HTTP methods as function (get, post, patch, put, delete)',
'It is similar to a traditional Django view',
'Gives you the most control over your logic',
'Is mapped manually to URLs'
]
return Response({'message': 'Hello!', 'an_apiview': an_apiview})
评论列表
文章目录