Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
b1e32376
Commit
b1e32376
authored
Feb 24, 2018
by
Travis Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
review: add feature introduction detail
parent
b4fc556f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lib/api/project_export.rb
lib/api/project_export.rb
+7
-2
No files found.
lib/api/project_export.rb
View file @
b1e32376
...
@@ -10,13 +10,16 @@ module API
...
@@ -10,13 +10,16 @@ module API
end
end
resource
:projects
,
requirements:
{
id:
%r{[^/]+}
}
do
resource
:projects
,
requirements:
{
id:
%r{[^/]+}
}
do
desc
'Get export status'
do
desc
'Get export status'
do
detail
'This feature was introduced in GitLab 10.6.'
success
Entities
::
ProjectExportStatus
success
Entities
::
ProjectExportStatus
end
end
get
':id/export'
do
get
':id/export'
do
present
user_project
,
with:
Entities
::
ProjectExportStatus
present
user_project
,
with:
Entities
::
ProjectExportStatus
end
end
desc
'Download export'
desc
'Download export'
do
detail
'This feature was introduced in GitLab 10.6.'
end
get
':id/export/download'
do
get
':id/export/download'
do
path
=
user_project
.
export_project_path
path
=
user_project
.
export_project_path
...
@@ -25,7 +28,9 @@ module API
...
@@ -25,7 +28,9 @@ module API
present_file!
(
path
,
File
.
basename
(
path
),
'application/gzip'
)
present_file!
(
path
,
File
.
basename
(
path
),
'application/gzip'
)
end
end
desc
'Start export'
desc
'Start export'
do
detail
'This feature was introduced in GitLab 10.6.'
end
post
':id/export'
do
post
':id/export'
do
user_project
.
add_export_job
(
current_user:
current_user
)
user_project
.
add_export_job
(
current_user:
current_user
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment