Skip to content

Commit

Permalink
Implement list
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <17039389+harupy@users.noreply.github.com>
  • Loading branch information
harupy committed Nov 16, 2023
1 parent dd1768c commit 33f082d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples/deployments/databricks.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def main():
},
)
try:
print(json.dumps(client.list_endpoints()["endpoints"][:3], indent=2))
print(json.dumps(client.get_endpoint(endpoint=name), indent=2))
print(
json.dumps(
Expand Down
2 changes: 1 addition & 1 deletion mlflow/deployments/databricks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def delete_endpoint(self, endpoint):
return self._call_endpoint("DELETE", route=endpoint)

def list_endpoints(self):
raise NotImplementedError("TODO")
return self._call_endpoint("GET")

def get_endpoint(self, endpoint):
return self._call_endpoint("GET", route=endpoint)
Expand Down

0 comments on commit 33f082d

Please sign in to comment.