Add root API showing the new endpoints.

Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
Michael Price
2018-03-09 04:11:28 -04:00
committed by Roberto Rosario
parent afd4748426
commit 49bb7c879e
4 changed files with 43 additions and 2 deletions

View 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)