class Api::UsersController < Api::BaseController
  def index
    @users = User.all
    @users = @users.where(id: params[:users]) if params[:users]
    render json: {users: @users.as_json(only: [:id, :name, :email])}
  end
end

class Api::UsersController < Api::BaseController
  def index
    @users = User.all
    @users = @users.where(id: params[:ids]) if params[:ids]
    @users = @users.where(email: params[:emails]) if params[:emails]
    render json: {users: @users.as_json(only: [:id, :name, :email, :image_url])}
  end
end
Add email filter for users api
Add email filter for users api
