Skip to content

Commit

Permalink
Fix/SK-1324 | Fixed bug in list method for resources (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
KatHellg authored Jan 23, 2025
1 parent ba1a6f7 commit 1e538f7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion fedn/cli/combiner_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def list_combiners(ctx, protocol: str, host: str, port: str, token: str = None,
if n_max:
headers["X-Limit"] = n_max

response = get_response(protocol=protocol, host=host, port=port, endpoint="combiners", token=token, headers=headers, usr_api=False, usr_token=False)
response = get_response(protocol=protocol, host=host, port=port, endpoint="combiners/", token=token, headers=headers, usr_api=False, usr_token=False)
print_response(response, "combiners", None)


Expand Down
2 changes: 1 addition & 1 deletion fedn/cli/model_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def list_models(ctx, protocol: str, host: str, port: str, token: str = None, ses
protocol=protocol, host=host, port=port, endpoint=f"models/?session_id={session_id}", token=token, headers=headers, usr_api=False, usr_token=False
)
else:
response = get_response(protocol=protocol, host=host, port=port, endpoint="models", token=token, headers=headers, usr_api=False, usr_token=False)
response = get_response(protocol=protocol, host=host, port=port, endpoint="models/", token=token, headers=headers, usr_api=False, usr_token=False)
print_response(response, "models", None)


Expand Down
2 changes: 1 addition & 1 deletion fedn/cli/package_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def list_packages(ctx, protocol: str, host: str, port: str, token: str = None, n
if n_max:
headers["X-Limit"] = n_max

response = get_response(protocol=protocol, host=host, port=port, endpoint="packages", token=token, headers=headers, usr_api=False, usr_token=False)
response = get_response(protocol=protocol, host=host, port=port, endpoint="packages/", token=token, headers=headers, usr_api=False, usr_token=False)
print_response(response, "packages", None)


Expand Down
2 changes: 1 addition & 1 deletion fedn/cli/round_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def list_rounds(ctx, protocol: str, host: str, port: str, token: str = None, ses
protocol=protocol,
host=host,
port=port,
endpoint="rounds",
endpoint="rounds/",
token=token,
headers=headers,
usr_api=False,
Expand Down
2 changes: 1 addition & 1 deletion fedn/cli/session_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def list_sessions(ctx, protocol: str, host: str, port: str, token: str = None, n
if n_max:
headers["X-Limit"] = n_max

response = get_response(protocol=protocol, host=host, port=port, endpoint="sessions", token=token, headers=headers, usr_api=False, usr_token=False)
response = get_response(protocol=protocol, host=host, port=port, endpoint="sessions/", token=token, headers=headers, usr_api=False, usr_token=False)
print_response(response, "sessions", None)


Expand Down
2 changes: 1 addition & 1 deletion fedn/cli/status_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def list_statuses(ctx, protocol: str, host: str, port: str, token: str = None, s
protocol=protocol, host=host, port=port, endpoint=f"statuses/?sessionId={session_id}", token=token, headers=headers, usr_api=False, usr_token=False
)
else:
response = get_response(protocol=protocol, host=host, port=port, endpoint="statuses", token=token, headers=headers, usr_api=False, usr_token=False)
response = get_response(protocol=protocol, host=host, port=port, endpoint="statuses/", token=token, headers=headers, usr_api=False, usr_token=False)
print_response(response, "statuses", None)


Expand Down
2 changes: 1 addition & 1 deletion fedn/cli/validation_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def list_validations(ctx, protocol: str, host: str, port: str, token: str = None
usr_token=False,
)
else:
response = get_response(protocol=protocol, host=host, port=port, endpoint="validations", token=token, headers=headers, usr_api=False, usr_token=False)
response = get_response(protocol=protocol, host=host, port=port, endpoint="validations/", token=token, headers=headers, usr_api=False, usr_token=False)
print_response(response, "validations", None)


Expand Down

0 comments on commit 1e538f7

Please sign in to comment.