def index
      # Index mode
      @sub_tenants = MnoEnterprise::SubTenant
      @sub_tenants = @sub_tenants.limit(params[:limit]) if params[:limit]
      @sub_tenants = @sub_tenants.skip(params[:offset]) if params[:offset]
      @sub_tenants = @sub_tenants.order_by(params[:order_by]) if params[:order_by]
      @sub_tenants = @sub_tenants.where(params[:where]) if params[:where]
      @sub_tenants = @sub_tenants.all
      response.headers['X-Total-Count'] = @sub_tenants.metadata[:pagination][:count]
    end
def index
      # Index mode
      @sub_tenants = MnoEnterprise::SubTenant
      @sub_tenants = @sub_tenants.limit(params[:limit]) if params[:limit]
      @sub_tenants = @sub_tenants.skip(params[:offset]) if params[:offset]
      @sub_tenants = @sub_tenants.order_by(params[:order_by]) if params[:order_by]
      @sub_tenants = @sub_tenants.where(params[:where]) if params[:where]
      @sub_tenants = @sub_tenants.all
      response.headers['X-Total-Count'] = @sub_tenants.metadata[:pagination][:count]
    end
GET /mnoe/jpi/v1/admin/sub_tenants