Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 03f5484

Browse filesBrowse files
nejchJohnVillalovos
authored andcommitted
docs(projects): document export with upload to URL
1 parent 8703324 commit 03f5484
Copy full SHA for 03f5484

File tree

Expand file treeCollapse file tree

1 file changed

+13
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+13
-0
lines changed
Open diff view settings
Collapse file

‎docs/gl_objects/projects.rst‎

Copy file name to clipboardExpand all lines: docs/gl_objects/projects.rst
+13Lines changed: 13 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,19 @@ generated by GitLab you need to:
293293
with open('/tmp/export.tgz', 'wb') as f:
294294
export.download(streamed=True, action=f.write)
295295

296+
You can export and upload a project to an external URL (see upstream documentation
297+
for more details)::
298+
299+
project.exports.create(
300+
{
301+
"upload":
302+
{
303+
"url": "http://localhost:8080",
304+
"method": "POST"
305+
}
306+
}
307+
)
308+
296309
You can also get the status of an existing export, regardless of
297310
whether it was created via the API or the Web UI::
298311

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.