Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1 год назад
1 год назад
1 год назад
1 год назад
1 год назад
1 год назад
123456789101112131415161718192021
  1. from flask_restx import Resource
  2. from controllers.web import web_ns
  3. from services.feature_service import FeatureService
  4. @web_ns.route("/system-features")
  5. class SystemFeatureApi(Resource):
  6. @web_ns.doc("get_system_features")
  7. @web_ns.doc(description="Get system feature flags and configuration")
  8. @web_ns.doc(responses={200: "System features retrieved successfully", 500: "Internal server error"})
  9. def get(self):
  10. """Get system feature flags and configuration.
  11. Returns the current system feature flags and configuration
  12. that control various functionalities across the platform.
  13. Returns:
  14. dict: System feature configuration object
  15. """
  16. return FeatureService.get_system_features().model_dump()