(self, request, key)
| 465 | |
| 466 | class PluginSettingsAPIView(PluginAuthMixin, APIView): |
| 467 | def post(self, request, key): |
| 468 | pm = PluginManager.get() |
| 469 | data = request.data or {} |
| 470 | settings = data.get("settings", {}) |
| 471 | try: |
| 472 | updated = pm.update_settings(key, settings) |
| 473 | return Response({"success": True, "settings": updated}) |
| 474 | except Exception as e: |
| 475 | return Response({"success": False, "error": str(e)}, status=status.HTTP_400_BAD_REQUEST) |
| 476 | |
| 477 | |
| 478 | class PluginRunAPIView(PluginAuthMixin, APIView): |
nothing calls this directly
no test coverage detected