ballerina-platform / ballerina-central

Ballerina Central Website
Apache License 2.0
104 stars 1 forks source link

Improve response of get latest distribution resource #233

Open anupama-pathirage opened 1 month ago

anupama-pathirage commented 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

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"}