@@ -10,15 +10,15 @@ class Endpoint():
1010 def __init__ (self , config ):
1111 self .client = Client (config )
1212
13- def all (self , appId , query ):
14- '''
13+ def all (self , app_id , query ):
14+ """
1515 Get all endpoints for an application.
16- '''
17- response = self .client .httpGet ("/applications/%s/endpoints" % appId , query )
16+ """
17+ response = self .client .http_get ("/applications/%s/endpoints" % app_id , query )
1818 return response
1919
20- def create (self , appId , query , data ):
21- '''
20+ def create (self , app_id , query , data ):
21+ """
2222 Create a new endpoint.
2323 Parameters
2424 ----------
@@ -28,19 +28,19 @@ def create(self, appId, query, data):
2828 "secret": "",
2929 "events": [],
3030 }
31- '''
32- response = self .client .httpPost ("/applications/%s/endpoints" % appId , query , data )
31+ """
32+ response = self .client .http_post ("/applications/%s/endpoints" % app_id , query , data )
3333 return response
3434
35- def find (self , appId , endpointId , query ):
36- '''
35+ def find (self , app_id , endpoint_id , query ):
36+ """
3737 Find a particular application.
38- '''
39- response = self .client .httpGet ("/applications/%s/endpoints/%s" % (appId , endpointId ), query )
38+ """
39+ response = self .client .http_get ("/applications/%s/endpoints/%s" % (app_id , endpoint_id ), query )
4040 return response
4141
42- def update (self , appId , endpointId , query , data ):
43- '''
42+ def update (self , app_id , endpoint_id , query , data ):
43+ """
4444 Update an application.
4545 Parameters
4646 ----------
@@ -50,14 +50,14 @@ def update(self, appId, endpointId, query, data):
5050 "secret": "",
5151 "events": [],
5252 }
53- '''
54- response = self .client .httpPut ("/applications/%s/endpoints/%s" % (appId , endpointId ), query , data )
53+ """
54+ response = self .client .http_put ("/applications/%s/endpoints/%s" % (app_id , endpoint_id ), query , data )
5555 return response
5656
57- def delete (self , appId , endpointId , query , data ):
58- '''
57+ def delete (self , app_id , endpoint_id , query , data ):
58+ """
5959 Delete an application.
60- '''
61- response = self .client .httpDelete ("/applications/%s/endpoints/%s" % (appId , endpointId ), query , data )
60+ """
61+ response = self .client .http_delete ("/applications/%s/endpoints/%s" % (app_id , endpoint_id ), query , data )
6262 return response
6363
0 commit comments