mirror of https://github.com/jumpserver/jumpserver
perf: initial
parent
570566d9dd
commit
c7f91e14e5
|
@ -128,6 +128,7 @@ INSTALLED_APPS = [
|
||||||
'notifications.apps.NotificationsConfig',
|
'notifications.apps.NotificationsConfig',
|
||||||
'rbac.apps.RBACConfig',
|
'rbac.apps.RBACConfig',
|
||||||
'labels.apps.LabelsConfig',
|
'labels.apps.LabelsConfig',
|
||||||
|
'reports.apps.ReportsConfig',
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
'drf_yasg',
|
'drf_yasg',
|
||||||
'django_cas_ng',
|
'django_cas_ng',
|
||||||
|
|
|
@ -30,6 +30,7 @@ resource_api = [
|
||||||
path('notifications/', include('notifications.urls.api_urls', namespace='api-notifications')),
|
path('notifications/', include('notifications.urls.api_urls', namespace='api-notifications')),
|
||||||
path('rbac/', include('rbac.urls.api_urls', namespace='api-rbac')),
|
path('rbac/', include('rbac.urls.api_urls', namespace='api-rbac')),
|
||||||
path('labels/', include('labels.urls', namespace='api-label')),
|
path('labels/', include('labels.urls', namespace='api-label')),
|
||||||
|
path('reports/', include('reports.urls.api_urls', namespace='api-reports')),
|
||||||
]
|
]
|
||||||
|
|
||||||
api_v1 = resource_api + [
|
api_v1 = resource_api + [
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
from django.contrib import admin
|
||||||
|
|
||||||
|
# Register your models here.
|
|
@ -0,0 +1 @@
|
||||||
|
from .report import *
|
|
@ -0,0 +1,9 @@
|
||||||
|
from rest_framework.generics import ListAPIView
|
||||||
|
from rest_framework.response import Response
|
||||||
|
|
||||||
|
__all__ = ['ReportViewSet']
|
||||||
|
|
||||||
|
|
||||||
|
class ReportViewSet(ListAPIView):
|
||||||
|
def list(self, request, *args, **kwargs):
|
||||||
|
return Response([])
|
|
@ -0,0 +1,6 @@
|
||||||
|
from django.apps import AppConfig
|
||||||
|
|
||||||
|
|
||||||
|
class ReportsConfig(AppConfig):
|
||||||
|
default_auto_field = "django.db.models.BigAutoField"
|
||||||
|
name = "reports"
|
|
@ -0,0 +1,3 @@
|
||||||
|
from django.db import models
|
||||||
|
|
||||||
|
# Create your models here.
|
|
@ -0,0 +1,3 @@
|
||||||
|
from django.test import TestCase
|
||||||
|
|
||||||
|
# Create your tests here.
|
|
@ -0,0 +1,9 @@
|
||||||
|
from django.urls import path
|
||||||
|
|
||||||
|
from reports import api
|
||||||
|
|
||||||
|
app_name = 'reports'
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
path('reports/', api.ReportViewSet.as_view(), name='report-list'),
|
||||||
|
]
|
|
@ -0,0 +1,3 @@
|
||||||
|
from django.shortcuts import render
|
||||||
|
|
||||||
|
# Create your views here.
|
Loading…
Reference in New Issue