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
@@ -3,7 +3,6 @@ from __future__ import unicode_literals
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from common import MayanAppConfig, menu_facet, menu_sidebar
|
||||
from rest_api.classes import APIEndPoint
|
||||
|
||||
from .links import link_search, link_search_advanced, link_search_again
|
||||
|
||||
@@ -11,6 +10,7 @@ from .links import link_search, link_search_advanced, link_search_again
|
||||
class DynamicSearchApp(MayanAppConfig):
|
||||
app_namespace = 'search'
|
||||
app_url = 'search'
|
||||
has_rest_api = True
|
||||
has_tests = True
|
||||
name = 'dynamic_search'
|
||||
verbose_name = _('Dynamic search')
|
||||
@@ -18,8 +18,6 @@ class DynamicSearchApp(MayanAppConfig):
|
||||
def ready(self):
|
||||
super(DynamicSearchApp, self).ready()
|
||||
|
||||
APIEndPoint(app=self, version_string='1')
|
||||
|
||||
menu_facet.bind_links(
|
||||
links=(link_search, link_search_advanced),
|
||||
sources=(
|
||||
|
||||
Reference in New Issue
Block a user