Skip to content

Commit

Permalink
Merge pull request FederatedAI#3058 from FederatedAI/develop-1.6.1-do…
Browse files Browse the repository at this point in the history
…c_update

add service query
  • Loading branch information
zhihuiwan authored Sep 2, 2021
2 parents bdfcf8c + 66281ad commit 247e16d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/fate_flow/apps/service_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,9 @@ def get_fate_version_info():
def service_registry():
update_server = ServiceUtils.register_service(request.json)
return get_json_result(data={"update_server": update_server})


@manager.route('/query', methods=['POST'])
def service_query():
service_info = ServiceUtils.get(request.json.get("service_name"))
return get_json_result(data={"service_info": service_info})

0 comments on commit 247e16d

Please sign in to comment.