class Api::MembersController < ApiController
  resource_description do
    short "Team members"
  end

  api :GET, "/api/members", "List all team members"
  returns code: 200, desc: "Array of team members" do
    property :nick, String, desc: "Nickname"
    property :real_nick, String, desc: "Real name"
    property :motto, String, desc: "Motto / tagline"
    property :avatar_filename, String, desc: "Avatar filename"
    property :image_url, String, desc: "Avatar image URL (e.g. /api/image/123)"
  end
  def index
    render json: MemberService.new.index
  end
end
