summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r--lib/api/entities.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 61df948df60..e7af928b0e9 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -441,13 +441,14 @@ module API
end
class License < Grape::Entity
- expose :key, :name, :nickname, :featured
+ expose :key, :name, :nickname
+ expose :featured, as: :popular
expose :url, as: :html_url
expose(:source_url) { |license| license.meta['source'] }
expose(:description) { |license| license.meta['description'] }
- expose(:conditions) { |license| license.meta['required'] }
- expose(:permissions) { |license| license.meta['permitted'] }
- expose(:limitations) { |license| license.meta['forbidden'] }
+ expose(:conditions) { |license| license.meta['conditions'] }
+ expose(:permissions) { |license| license.meta['permissions'] }
+ expose(:limitations) { |license| license.meta['limitations'] }
expose :content
end
end