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:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-04-21 21:10:22 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-04-21 21:10:22 +0300
commit2c87a975e36acc152da28665d39ca720f479fe53 (patch)
treedba6d512c4332acdbc91f2825f6f2d40b39acb49 /lib/api/topics.rb
parent48e30ea32f840f5c92e71e34f7a3166b4fc35576 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/topics.rb')
-rw-r--r--lib/api/topics.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/api/topics.rb b/lib/api/topics.rb
index e4a1fa2367e..15f79e75be3 100644
--- a/lib/api/topics.rb
+++ b/lib/api/topics.rb
@@ -38,7 +38,8 @@ module API
success Entities::Projects::Topic
end
params do
- requires :name, type: String, desc: 'Name'
+ requires :name, type: String, desc: 'Slug (name)'
+ requires :title, type: String, desc: 'Title'
optional :description, type: String, desc: 'Description'
optional :avatar, type: ::API::Validations::Types::WorkhorseFile, desc: 'Avatar image for topic'
end
@@ -60,7 +61,8 @@ module API
end
params do
requires :id, type: Integer, desc: 'ID of project topic'
- optional :name, type: String, desc: 'Name'
+ optional :name, type: String, desc: 'Slug (name)'
+ optional :title, type: String, desc: 'Title'
optional :description, type: String, desc: 'Description'
optional :avatar, type: ::API::Validations::Types::WorkhorseFile, desc: 'Avatar image for topic'
end