module OasRails::Extractors::OasRouteExtractor

def generate_crud_name(method, controller)

def generate_crud_name(method, controller)
  controller_name = controller.to_s.underscore.humanize.downcase.pluralize
  case method.to_sym
  when :index
    "List #{controller_name}"
  when :show
    "View #{controller_name.singularize}"
  when :create
    "Create new #{controller_name.singularize}"
  when :update
    "Update #{controller_name.singularize}"
  when :destroy
    "Delete #{controller_name.singularize}"
  end
end