Includes project in wiki page API response (#43569).

git-svn-id: https://svn.redmine.org/redmine/trunk@24201 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2025-12-06 12:27:53 +00:00
parent e072374b80
commit 4898e01652
2 changed files with 2 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ api.wiki_page do
api.version @content.version
api.author(:id => @content.author_id, :name => @content.author.name) unless @content.author_id.nil?
api.comments @content.comments
api.project(:id => @page.project_id, :name => @page.project.name) unless @page.project.nil?
api.created_on @page.created_on
api.updated_on @content.updated_on

View File

@@ -49,6 +49,7 @@ class Redmine::ApiTest::WikiPagesTest < Redmine::ApiTest::Base
assert_select 'text'
assert_select 'author'
assert_select 'comments'
assert_select 'project[id=1][name="eCookbook"]'
assert_select 'created_on'
assert_select 'updated_on'
end