Commit a96ac23fa449d043209427a44554836d09d4bc86
1 parent
38e25ac7
Exists in
update_software_api
and in
1 other branch
fix showing license_info in software API
Signed-off-by: Marcos Ronaldo <marcos.rpj2@gmail.com> Signed-off-by: Macartur Sousa <macartur.sc@gmail.com> (cherry picked from commit 8c0dc128b106aa466429bbefc672d618f7578d17)
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 | 1 | module Entities |
2 | + | |
3 | + class LicenseInfo < Noosfero::API::Entity | |
4 | + expose :version | |
5 | + expose :link | |
6 | + end | |
7 | + | |
2 | 8 | class SoftwareInfo < Noosfero::API::Entity |
3 | 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 | 21 | expose :community_id do |software_info,options| |
7 | 22 | software_info.community.id |
8 | 23 | end |
9 | 24 | end |
25 | + | |
10 | 26 | end | ... | ... |