tells you which api version is higher
Just copy-paste this install script.
git clone https://github.com/candyapplecorn/api-version-comparer-service.git && \
cd api-version-comparer-service && \
npm install && \
npm run test
Start the server with npm run start
.
There's only one route: /version-compare. You can send it a query parameter, 'versions', which can be one or more "version" numbers.
Here's an example CURL request:
$> curl 'localhost:8080/version-compare?versions\[\]=2&versions\[\]=2.1';
"2.1"
$>