Commit cef98b5a3bd8f1ee6ca2ee6205d8437923f8cdd2
Exists in
master
and in
41 other branches
Merge branch 'fix_software_api' into 'master'
Fix software_communities api fix showing license_info in software_communities endpoints See merge request !122
Showing
1 changed file
with
18 additions
and
2 deletions
Show diff stats
src/noosfero-spb/software_communities/lib/software_communities_plugin/api_entities.rb
1 | module Entities | 1 | module Entities |
2 | + | ||
3 | + class LicenseInfo < Noosfero::API::Entity | ||
4 | + expose :version | ||
5 | + expose :link | ||
6 | + end | ||
7 | + | ||
2 | class SoftwareInfo < Noosfero::API::Entity | 8 | class SoftwareInfo < Noosfero::API::Entity |
3 | root 'software_infos', 'software_info' | 9 | root 'software_infos', 'software_info' |
4 | - expose :id, :finality, :repository_link, :public_software, :acronym, :objectives, | ||
5 | - :features,:license_info, :software_languages, :software_databases, :operating_system_names | 10 | + expose :id |
11 | + expose :finality | ||
12 | + expose :repository_link | ||
13 | + expose :public_software | ||
14 | + expose :acronym | ||
15 | + expose :objectives | ||
16 | + expose :features | ||
17 | + expose :license_info, :using => LicenseInfo | ||
18 | + expose :software_languages | ||
19 | + expose :software_databases | ||
20 | + expose :operating_system_names | ||
6 | expose :community_id do |software_info,options| | 21 | expose :community_id do |software_info,options| |
7 | software_info.community.id | 22 | software_info.community.id |
8 | end | 23 | end |
9 | end | 24 | end |
25 | + | ||
10 | end | 26 | end |