Skip to content

Commit e27ac10

Browse files
authored
Migrating from /api to /ajax-api endpoint (#36)
1 parent 5a4237f commit e27ac10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ MLFlowClient.uri(mlf, "experiments/get", Dict(:experiment_id=>10))
2525
```
2626
"""
2727
function uri(mlf::MLFlow, endpoint="", query=missing)
28-
u = URI("$(mlf.baseuri)/api/$(mlf.apiversion)/mlflow/$(endpoint)")
28+
u = URI("$(mlf.baseuri)/ajax-api/$(mlf.apiversion)/mlflow/$(endpoint)")
2929
!ismissing(query) && return URI(u; query=query)
3030
u
3131
end

test/test_functional.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ end
4040
let baseuri = "http://localhost:5001", apiversion = "2.0", endpoint = "experiments/get"
4141
mlf = MLFlow(baseuri; apiversion)
4242
apiuri = uri(mlf, endpoint)
43-
@test apiuri == URI("$baseuri/api/$apiversion/mlflow/$endpoint")
43+
@test apiuri == URI("$baseuri/ajax-api/$apiversion/mlflow/$endpoint")
4444
end
4545
let baseuri = "http://localhost:5001", auth_headers = Dict("Authorization" => "Bearer 123456"),
4646
custom_headers = Dict("Content-Type" => "application/json")

0 commit comments

Comments
 (0)