diff --git a/fyle/platform/apis/v1/__init__.py b/fyle/platform/apis/v1/__init__.py index 14d47ba..2b82ba9 100644 --- a/fyle/platform/apis/v1/__init__.py +++ b/fyle/platform/apis/v1/__init__.py @@ -1,6 +1,6 @@ -from . import admin +from . import admin, approver __all__ = [ - admin + admin, approver ] version = 'v1' diff --git a/fyle/platform/apis/v1/approver/__init__.py b/fyle/platform/apis/v1/approver/__init__.py new file mode 100644 index 0000000..52fe766 --- /dev/null +++ b/fyle/platform/apis/v1/approver/__init__.py @@ -0,0 +1,10 @@ +""" + Initializing Approver API's +""" + +from .reports import Reports +from ..version import version + +role = 'approver' + +reports = Reports(version, role) diff --git a/fyle/platform/apis/v1/approver/reports.py b/fyle/platform/apis/v1/approver/reports.py new file mode 100644 index 0000000..f94e7dd --- /dev/null +++ b/fyle/platform/apis/v1/approver/reports.py @@ -0,0 +1,14 @@ +""" +V1 Approver Reports +""" + +from ....internals.list_resources import ListResources + + +class Reports(ListResources): + """Class for Reports APIs.""" + + REPORTS = '/reports' + + def __init__(self, version, role): + super().__init__(version, role, Reports.REPORTS) diff --git a/setup.py b/setup.py index 5345940..228cb55 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='fyle', - version='v0.2.0', + version='v0.3.0', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing Fyle Platform APIs',