File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ function __sdkman_list_versions {
44
44
if [[ " $SDKMAN_AVAILABLE " == " false" ]]; then
45
45
__sdkman_offline_list " $candidate " " $versions_csv "
46
46
else
47
- __sdkman_echo_no_colour " $( __sdkman_secure_curl " ${SDKMAN_LEGACY_API } /candidates/${candidate} /list?platform= ${SDKMAN_PLATFORM} & current=${CURRENT} &installed=${versions_csv} " ) "
47
+ __sdkman_echo_no_colour " $( __sdkman_secure_curl " ${SDKMAN_CURRENT_API } /candidates/${candidate} /${SDKMAN_PLATFORM} /versions/list? current=${CURRENT} &installed=${versions_csv} " ) "
48
48
fi
49
49
}
50
50
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ And(~/^the candidate "(.*?)" version "(.*?)" is not available for download on "(
68
68
}
69
69
70
70
And (~' ^a "([^"]*)" list view is available for consumption$' ) { String candidate ->
71
- primeEndpointWithString(" /candidates/${ candidate} /list?platform= ${ UnixUtils.platform} & current=&installed=" , " Available ${ candidate.capitalize()} Versions" )
71
+ primeEndpointWithString(" /candidates/${ candidate} /${ UnixUtils.platform} /versions/list? current=&installed=" , " Available ${ candidate.capitalize()} Versions" )
72
72
}
73
73
74
74
And (~' ^the candidate "([^"]*)" version "([^"]*)" is a valid candidate version$' ) { String candidate , String version ->
@@ -82,7 +82,7 @@ And(~'^the candidate "([^"]*)" version "([^"]*)" is not a valid candidate versio
82
82
And (~/ ^the candidate "(.*?)" has a version list available$/ ) { String candidate ->
83
83
def current = readCurrentFromCandidateFolder(candidatesDir, candidate)
84
84
def versions = readVersionsCsvFromCandidateFolder(candidatesDir, candidate)
85
- def url = " /candidates/${ candidate} /list?platform= ${ UnixUtils.platform} & current=${ current} &installed=${ versions} "
85
+ def url = " /candidates/${ candidate} /${ UnixUtils.platform} /versions/list? current=${ current} &installed=${ versions} "
86
86
println (" Priming url: $url " )
87
87
primeEndpointWithString(url, " Candidate: $candidate ; Versions: $versions ; Current: $current ; Platform: ${ UnixUtils.platform} " )
88
88
}
You can’t perform that action at this time.
0 commit comments