candyapplecorn / api-version-comparer-service

it tells you which api version is higher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

api-version-comparer-service

tells you which api version is higher

Install

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

Usage

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

About

it tells you which api version is higher


Languages

Language:JavaScript 100.0%