Add API call to determine network count restrictions.

Issue #12 resolved
Josh created an issue

Add API call to determine if a user has reached their maximum number of networks.

Comments (2)

  1. Josh reporter

    Commit https://bitbucket.org/esyn/esyn-project/commits/1e007e7b487126c373a7f0f20a5bce815cb8c2ab

    Added API call "checkstorage" to manager.php accessible via GET. This call returns the maximum number of networks allowed, the number of networks owned by the user, and if the user is allowed to create more.

    Example: http://www.esyn.org/manager.php?action=checkstorage

    Returns:

    {
        "cancreate": true,
        "maxnetworks": 10,
        "currentnetworks": 3
    }
    

    or...

    {
        "cancreate": false,
        "maxnetworks": 10,
        "currentnetworks": 10
    }
    
  2. Log in to comment