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:
authorTravis Miller <travis@travismiller.com>2018-02-25 06:18:46 +0300
committerTravis Miller <travis@travismiller.com>2018-03-01 05:47:37 +0300
commitb1e3237677f9cdc4e0e792f26dbc3fc642c7ef28 (patch)
tree681b205da47b9f31827e9e1e8840d48438bfe8fa /lib/api/project_export.rb
parentb4fc556f10b9bed9af9a7d57de5b8fcdfa584ad9 (diff)
review: add feature introduction detail
Diffstat (limited to 'lib/api/project_export.rb')
-rw-r--r--lib/api/project_export.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/api/project_export.rb b/lib/api/project_export.rb
index 8b2c5bedc60..4041faae971 100644
--- a/lib/api/project_export.rb
+++ b/lib/api/project_export.rb
@@ -10,13 +10,16 @@ module API
end
resource :projects, requirements: { id: %r{[^/]+} } do
desc 'Get export status' do
+ detail 'This feature was introduced in GitLab 10.6.'
success Entities::ProjectExportStatus
end
get ':id/export' do
present user_project, with: Entities::ProjectExportStatus
end
- desc 'Download export'
+ desc 'Download export' do
+ detail 'This feature was introduced in GitLab 10.6.'
+ end
get ':id/export/download' do
path = user_project.export_project_path
@@ -25,7 +28,9 @@ module API
present_file!(path, File.basename(path), 'application/gzip')
end
- desc 'Start export'
+ desc 'Start export' do
+ detail 'This feature was introduced in GitLab 10.6.'
+ end
post ':id/export' do
user_project.add_export_job(current_user: current_user)