How to know how many floating license are leased currently?

The API endpoint provided can be hit by any http client, you can use curl for testing. If the address of server is (say) 192.168.1.2:8090, then you can get the stats by hitting:

http://192.168.1.2:8090/services/api/stats

Oh okay, it is good. I thought it was implemented as a part of LexFloatClient API.
Thank you very much for adding the feature!

I integrated the info got from the API into our app. It would be nice at some point, such api info will be available in online help of Cryptlex. (at least I couldn’t find mentioning this new api on Cyprtlex site)

We will be updating the online docs soon.

Thanks!

Also, to check compatibility of floating license server from floating license client, can you guys include “version number” info in /stat api? (or somewhere else as you guys think it is proper)

We use semver so, unless the major version changes the client is always backward compatible.

You may expect some breaking changes in release v3.0 but not in v2.x

The reason is:
Currently we’re using “/stat” api to show the expiration date of server.
To use “/stat” api, it requires 2.40 server or later.
In case if the customer is using older version, like 2.3, we want to show some warning so our customer will know they need to upgrade the server as well. (in case of they forgot to upgrade)

Adding version number in the stats api is fine but it doesn’t help in your case.

If v2.3 user hits the stats api he won’t get the response json and this way he would know that an update is needed.

Thanks for the changes! It will help us for future changes