Skip to content

Commit

Permalink
Migrating from /api to /ajax-api endpoint (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
pebeto authored Jan 7, 2024
1 parent 5a4237f commit e27ac10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MLFlowClient.uri(mlf, "experiments/get", Dict(:experiment_id=>10))
```
"""
function uri(mlf::MLFlow, endpoint="", query=missing)
u = URI("$(mlf.baseuri)/api/$(mlf.apiversion)/mlflow/$(endpoint)")
u = URI("$(mlf.baseuri)/ajax-api/$(mlf.apiversion)/mlflow/$(endpoint)")
!ismissing(query) && return URI(u; query=query)
u
end
Expand Down
2 changes: 1 addition & 1 deletion test/test_functional.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ end
let baseuri = "http://localhost:5001", apiversion = "2.0", endpoint = "experiments/get"
mlf = MLFlow(baseuri; apiversion)
apiuri = uri(mlf, endpoint)
@test apiuri == URI("$baseuri/api/$apiversion/mlflow/$endpoint")
@test apiuri == URI("$baseuri/ajax-api/$apiversion/mlflow/$endpoint")
end
let baseuri = "http://localhost:5001", auth_headers = Dict("Authorization" => "Bearer 123456"),
custom_headers = Dict("Content-Type" => "application/json")
Expand Down

0 comments on commit e27ac10

Please sign in to comment.