97e3689
1
2
3
4
5
6
7
8
9
10
from rest_framework.decorators import api_view from rest_framework.response import Response from datetime import datetime @api_view(["GET"]) def api(request): urls = {"name": "Quoc Bao", "dob": "10/10/2000", "time": datetime.now()} return Response(urls)