MAAS publishes a special view at .../api/1.0/version/ that returns a list of the server’s capabilities. It’s transferred as a JSON document:
{"capabilities": ["name-of-capability", ...]}
Note
The view is called version because this will, later, include version information too.
Check for the following strings in the capabilities list to see what features the MAAS server supports. Use these in preference to gating on the version when creating a client application.