vistas iniciales en las tablas

This commit is contained in:
2023-02-16 13:11:32 +01:00
parent b07813a859
commit 9510c9bed2
10 changed files with 76 additions and 6 deletions

6
lista/urls.py Normal file
View File

@@ -0,0 +1,6 @@
from django.urls import path
from . import views
urlpatterns = [
path('', views.HelloListaView.as_view(), name='hello_lista'),
]

View File

@@ -1,3 +1,12 @@
from django.shortcuts import render
# from django.shortcuts import render
from rest_framework import generics, status
from rest_framework.response import Response
# Create your views here.
class HelloListaView(generics.GenericAPIView):
def get(self, request):
return Response(data={"message": "Hello Lista"},
status=status.HTTP_200_OK)