https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292023-08-18T15:27:38ZRedmineRedmine - Defect #32246: [Redmine API] functionality to export whole wikihttps://www.redmine.org/issues/32246?journal_id=1105722023-08-18T15:27:38ZLucas Di Pentima
<ul></ul><p>Hello there!</p>
<p>I've bumped into the same issue and with this simple patch I was able to make it work. It's super trivial and I hope it gets fixed on the next release. This was done in Redmine 4.2.10:</p>
<pre><code class="diff syntaxhl"><span class="gd">--- old/app/controllers/wiki_controller.rb 2023-03-05 21:35:09.000000000 +0000
</span><span class="gi">+++ new/app/controllers/wiki_controller.rb 2023-08-18 15:08:22.053444624 +0000
</span><span class="p">@@ -37,7 +37,7 @@</span>
before_action :find_existing_or_new_page, :only => [:show, :edit]
before_action :find_existing_page, :only => [:rename, :protect, :history, :diff, :annotate, :add_attachment, :destroy, :destroy_version]
before_action :find_attachments, :only => [:preview]
<span class="gd">- accept_api_auth :index, :show, :update, :destroy
</span><span class="gi">+ accept_api_auth :index, :show, :update, :destroy, :export
</span>
helper :attachments
include AttachmentsHelper
</code></pre> Redmine - Defect #32246: [Redmine API] functionality to export whole wikihttps://www.redmine.org/issues/32246?journal_id=1127222024-02-02T10:09:39ZWurzel mann
<ul></ul><p>Sorry for my late reply, it works, thank you very much!</p> Redmine - Defect #32246: [Redmine API] functionality to export whole wikihttps://www.redmine.org/issues/32246?journal_id=1127232024-02-02T10:17:51ZAdi Kriegisch
<ul></ul><p>Great! What would it take to get this patch upstream? This only exposes the export endpoint of the wiki to API auth...<br />Is there a reason, wiki export isn't exposed to the API?</p>