Get rids of the APIEndPoint and APIResource classes. Register API url using the 'has_rest_api' AppConfig variable.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
36d19ea284
commit
e1956f8d80
@@ -14,7 +14,6 @@ from documents.menus import menu_documents
|
||||
from documents.signals import post_version_upload
|
||||
from mayan.celery import app
|
||||
from navigation import SourceColumn
|
||||
from rest_api.classes import APIEndPoint
|
||||
|
||||
from .classes import StagingFile
|
||||
from .handlers import (
|
||||
@@ -35,6 +34,7 @@ from .widgets import StagingFileThumbnailWidget
|
||||
|
||||
|
||||
class SourcesApp(MayanAppConfig):
|
||||
has_rest_api = True
|
||||
has_tests = True
|
||||
name = 'sources'
|
||||
verbose_name = _('Sources')
|
||||
@@ -51,8 +51,6 @@ class SourcesApp(MayanAppConfig):
|
||||
WatchFolderSource = self.get_model('WatchFolderSource')
|
||||
WebFormSource = self.get_model('WebFormSource')
|
||||
|
||||
APIEndPoint(app=self, version_string='1')
|
||||
|
||||
MissingItem(
|
||||
label=_('Create a document source'),
|
||||
description=_(
|
||||
|
||||
Reference in New Issue
Block a user