summaryrefslogtreecommitdiff
path: root/lib/api/entities/basic_success.rb
blob: 37388f56221624bc2b216938f38ac1229a51a19b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module API
  module Entities
    # Simple representation for endpoints that returns a trivial success response.
    class BasicSuccess < Grape::Entity
      expose :success, documentation: { type: 'boolean' } do
        true
      end
    end
  end
end