Add root API showing the new endpoints.
Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
afd4748426
commit
49bb7c879e
10
mayan/apps/rest_api/classes.py
Normal file
10
mayan/apps/rest_api/classes.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
|
||||
class Endpoint(object):
|
||||
def __init__(self, label):
|
||||
self.label = label
|
||||
|
||||
@property
|
||||
def url(self):
|
||||
return '/api/{}/'.format(self.label)
|
||||
Reference in New Issue
Block a user