X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?p=escalator.git;a=blobdiff_plain;f=api%2Fescalator%2Fapi%2Fv1%2Fcontroller.py;fp=api%2Fescalator%2Fapi%2Fv1%2Fcontroller.py;h=ad0b9d7d4469e9f476dd0696b352cf6376622939;hp=0000000000000000000000000000000000000000;hb=872bef90d91089812110e31927354a5e9e27af4c;hpb=70cbd8351e09634e45c9bcfaa48a2672c43ae240 diff --git a/api/escalator/api/v1/controller.py b/api/escalator/api/v1/controller.py new file mode 100644 index 0000000..ad0b9d7 --- /dev/null +++ b/api/escalator/api/v1/controller.py @@ -0,0 +1,13 @@ +class BaseController(object): + + def get_cluster_meta_or_404(self, request, cluster_id): + """ + Grabs the cluster metadata for an cluster with a supplied + identifier or raises an HTTPNotFound (404) response + + :param request: The WSGI/Webob Request object + :param cluster_id: The opaque cluster identifier + + :raises HTTPNotFound if cluster does not exist + """ + pass