Open anupama-pathirage opened 1 month ago
@keizer619 cloned issue wso2-enterprise/ballerina-registry#2104 on 2023-06-20:
Description: Currently get latest distribution returns a json where all 3 attributes have same version request url https://api.central.ballerina.io/2.0/update-tool/distributions/latest?version=2201.0.0 response {"major":"2201.6.0", "minor":"2201.6.0", "patch":"2201.6.0"} Ideally it should return given versions latest patch, minor and major as below 1.x releases request url https://api.central.ballerina.io/2.0/update-tool/distributions/latest?version=1.1.0 response {"major":"2201.6.0", "minor":"1.2.39", "patch":"1.1.4"} 2201.x releases request url https://api.central.ballerina.io/2.0/update-tool/distributions/latest?version=2201.0.0 response {"major":"2201.6.0", "minor":"2201.6.0", "patch":"2201.0.5"}
Description:
Currently get latest distribution returns a json where all 3 attributes have same version
https://api.central.ballerina.io/2.0/update-tool/distributions/latest?version=2201.0.0
{"major":"2201.6.0", "minor":"2201.6.0", "patch":"2201.6.0"}
Ideally it should return given versions latest patch, minor and major as below
1.x releases
request url
https://api.central.ballerina.io/2.0/update-tool/distributions/latest?version=1.1.0
response
{"major":"2201.6.0", "minor":"1.2.39", "patch":"1.1.4"}
2201.x releases
{"major":"2201.6.0", "minor":"2201.6.0", "patch":"2201.0.5"}
@keizer619 cloned issue wso2-enterprise/ballerina-registry#2104 on 2023-06-20: