Skip to content

Commit 22e2c3c

Browse files
author
krgupta
committed
controllers with new templates
1 parent 3c94836 commit 22e2c3c

File tree

45 files changed

+1650
-225
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1650
-225
lines changed

ControllerTemplate.pyt

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
2+
class APICONTROLLERNAMEController(apicontrollersbase.APIOperationBase):
3+
4+
def __init__(self, apirequest, requestType):
5+
super(APICONTROLLERNAMEController, self).__init__(apirequest, requestType)
6+
return
7+
8+
def validateRequest(self):
9+
logging.debug('performing custom validation..')
10+
11+
if (self._request.transId == "null"):
12+
raise ValueError('transId is required')
13+
return
14+
15+
def getResponseClass(self):
16+
''' Returns the response class '''
17+
return apicontractsv1.APICONTROLLERNAMEResponse()
18+

0 commit comments

Comments
 (0)