feat(itim): Add v2 endpoint ITIM

ref:  #345 #346
This commit is contained in:
2024-10-12 23:06:31 +09:30
parent 039ae89814
commit 1df9589d55
3 changed files with 53 additions and 4 deletions

View File

@ -0,0 +1,34 @@
from drf_spectacular.utils import extend_schema
from rest_framework.response import Response
from rest_framework.reverse import reverse
from api.viewsets.common import CommonViewSet
@extend_schema(exclude = True)
class Index(CommonViewSet):
allowed_methods: list = [
'GET',
'HEAD',
'OPTIONS'
]
view_description = "Information Technology Infrastructure Management (ITIM) Module"
view_name = "ITIM"
def list(self, request, pk=None):
return Response(
{
"change": "ToDo",
"cluster": "ToDo",
"incident": "ToDo",
"problem": "ToDo",
"service": "ToDo",
}
)