# frozen_string_literal: true

class VulnerabilityEntity < Grape::Entity
  expose :id
  expose :title
  expose :description

  expose :state
  expose :severity
  expose :confidence
  expose :report_type

  expose :project, using: ::ProjectEntity

  expose :author_id
  expose :updated_by_id
  expose :last_edited_by_id
  expose :closed_by_id

  expose :start_date
  expose :due_date

  expose :created_at
  expose :updated_at
  expose :last_edited_at
  expose :closed_at
end
