Feature #23894 » Include-repositories-in-projects-API.patch
app/helpers/projects_helper.rb | ||
---|---|---|
133 | 133 |
end |
134 | 134 |
end if include_in_api_response?('enabled_modules') |
135 | 135 | |
136 |
api.array :repositories do |
|
137 |
project.repositories.each do |repository| |
|
138 |
api.repository(:id => repository.id, |
|
139 |
:name => repository.name, |
|
140 |
:identifier => repository.identifier, |
|
141 |
:is_default => repository.is_default, |
|
142 |
:type => repository.type, |
|
143 |
:url => repository.url) |
|
144 |
end |
|
145 |
end if include_in_api_response?('repositories') |
|
146 | ||
136 | 147 |
end |
137 | 148 |
end |