Example #1
0
    def post(self, id=None, action=None):
        if id is None or action is None:
            return super(InvestigationApi, self).post(id)
        else:
            method = find_method(self, action, "action")
            investigation = get_object_or_404(Investigation, id=id)

            return method(investigation)
Example #2
0
    def post(self, id, action):
        method = find_method(self, action, "action")
        analytics = get_object_or_404(OneShotAnalytics, id=id)

        return method(analytics)
Example #3
0
    def post(self, id, action):
        method = find_method(self, action, "action")

        return method(id)