-
Notifications
You must be signed in to change notification settings - Fork 1
example api_url.py
Michael Jolin edited this page Aug 18, 2017
·
5 revisions
import cherrypy
from cause.api.management.api_url import ApiUrl as UrlForManagement
class ApiUrl(UrlForManagement):
def __init__(self):
super(ApiUrl, self).__init__()
@cherrypy.expose
def firsturl(self, *args, **kwargs):
return self.call_method('FirstUrl', self.get_argument(args, kwargs))
@cherrypy.expose
def secondurl(self, *args, **kwargs):
return self.call_method('SecondUrl', self.get_argument(args, kwargs))