2020-02-20 03:08:57 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class DeployToken < Grape::Entity
|
2020-02-28 12:09:05 +00:00
|
|
|
# exposing :token is a security risk and should be avoided
|
|
|
|
expose :id, :name, :username, :expires_at, :scopes
|
2020-02-20 03:08:57 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|