MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / get_services_info

Method get_services_info

mod/project/python/serviceMod.py:669–678  ·  view source on GitHub ↗
(get)

Source from the content-addressed store, hash-verified

667
668 @staticmethod
669 def get_services_info(get):
670 try:
671 project_name = get.project_name.strip()
672 except:
673 return json_response(False, '参数错误')
674
675 s_mgr = ServiceManager.new_mgr(project_name)
676 if isinstance(s_mgr, str):
677 return json_response(False, s_mgr)
678 return json_response(True, data=s_mgr.get_services_info())
679
680 @staticmethod
681 def add_service(get):

Callers

nothing calls this directly

Calls 2

json_responseFunction · 0.90
new_mgrMethod · 0.80

Tested by

no test coverage detected