from pydvid.util import get_json_generic

def get_server_info( connection ):
    """
    Return the json data provided by the ``/api/server/info`` DVID call.
    """
    return get_json_generic( connection, "/api/server/info", schema='server_info.jsonschema' )

def get_server_types(connection):
    """
    Return the json data provided by the ``/api/server/types`` DVID call.
    """
    return get_json_generic( connection, "/api/server/types", schema='server_types.jsonschema' )

def get_datasets_info( connection ):
    """
    Return the json data provided by the ``/api/datasets/info`` DVID call.
    """
    return get_json_generic( connection, "/api/datasets/info" ) #, schema='server_info.jsonschema' )

def get_datasets_list(connection):
    """
    Return the json data provided by the ``/api/datasets/list`` DVID call.
    """
    return get_json_generic( connection, "/api/datasets/list", schema='datasets_list.jsonschema' )


from pydvid.util import get_json_generic

def get_server_info( connection ):
    """
    Return the json data provided by the ``/api/server/info`` DVID call.
    """
    return get_json_generic( connection, "/api/server/info", schema='server_info.jsonschema' )

def get_server_types(connection):
    """
    Return the json data provided by the ``/api/server/types`` DVID call.
    """
    return get_json_generic( connection, "/api/server/types", schema='server_types.jsonschema' )

def get_datasets_info( connection ):
    """
    Return the json data provided by the ``/api/datasets/info`` DVID call.
    """
    return get_json_generic( connection, "/api/datasets/info", schema='datasets_info.jsonschema' )

def get_datasets_list(connection):
    """
    Return the json data provided by the ``/api/datasets/list`` DVID call.
    """
    return get_json_generic( connection, "/api/datasets/list", schema='datasets_list.jsonschema' )


Validate schema for datasets_info