TripleParity/docks-api

Get API version

Opened this issue · 0 comments

The front-end may only work with a specific version or range. It will be useful to know when the system administrator has updated the back-end to a new major version, breaking the front-end. By checking the version we can avoid undefined behaviour when using an incompatible version.

Another thought that comes to mind is that the admin should be able to invalidate all token after upgrading to a new version. This can be done by changing the JWT secret key. This way the version only has to be checked during login.

Version [/api/version]

Get Docks API version [GET]

  • Response 200 (application/json)

      {
          "version": "0.0.2"
      }