Varian Test project - Server Manager

A demonstration API made with Flask RESTful that simulates the management of servers on a basic level. Currently it is not hosted on any platform, it can be launched in a local environment to serve as the backend of the client. Requires Flask and Flask RESTful in order to work (see requirements.txt).

The client repository can be found here: https://github.com/AttilaBalla/variantest_client

The API currently has support for the following endpoints:

  • /, /servers - GET returns a list of objects that contain details of all servers. These are ID, name, status.
  • /servers/int:server_id - GET returns a object that contains details of the given server ID.
  • /server - PUT attempts to checkout the first available server. Returns an object containing a success message or error message if no servers are left to check out.
  • /server/int:server_id - PUT checks out the given server if it's available, releases if it's checked out. Returns an object containing a success message or an error message if an attempt is made to check out or release a server that is down.