2020-03-09 13:42:32 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class Application < Grape::Entity
|
|
|
|
expose :id
|
2023-01-13 00:05:48 +05:30
|
|
|
expose :uid, as: :application_id,
|
|
|
|
documentation: { type: 'string',
|
|
|
|
example: '5832fc6e14300a0d962240a8144466eef4ee93ef0d218477e55f11cf12fc3737' }
|
|
|
|
expose :name, as: :application_name, documentation: { type: 'string', example: 'MyApplication' }
|
|
|
|
expose :redirect_uri, as: :callback_url, documentation: { type: 'string', example: 'https://redirect.uri' }
|
|
|
|
expose :confidential, documentation: { type: 'boolean', example: true }
|
2020-03-09 13:42:32 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|