22 lines
527 B
Python
22 lines
527 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from common import MayanAppConfig, menu_tools
|
|
|
|
from .classes import APIEndPoint
|
|
from .links import link_api, link_api_documentation
|
|
|
|
|
|
class RESTAPIApp(MayanAppConfig):
|
|
app_url = 'api'
|
|
name = 'rest_api'
|
|
verbose_name = _('REST API')
|
|
|
|
def ready(self):
|
|
super(RESTAPIApp, self).ready()
|
|
|
|
APIEndPoint(app=self, version_string='1')
|
|
|
|
menu_tools.bind_links(links=(link_api, link_api_documentation))
|