Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/api/wikis.rb')
-rw-r--r--lib/api/wikis.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/api/wikis.rb b/lib/api/wikis.rb
index 2058f5de706..a7408512102 100644
--- a/lib/api/wikis.rb
+++ b/lib/api/wikis.rb
@@ -85,6 +85,9 @@ module API
end
params do
requires :title, type: String, desc: 'Title of a wiki page'
+ optional :front_matter, type: Hash do
+ optional :title, type: String, desc: 'Front matter title of a wiki page'
+ end
requires :content, type: String, desc: 'Content of a wiki page'
use :common_wiki_page_params
end
@@ -112,6 +115,9 @@ module API
end
params do
optional :title, type: String, desc: 'Title of a wiki page'
+ optional :front_matter, type: Hash do
+ optional :title, type: String, desc: 'Front matter title of a wiki page'
+ end
optional :content, type: String, desc: 'Content of a wiki page'
use :common_wiki_page_params
at_least_one_of :content, :title, :format