summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-04-06 20:07:45 +0300
committerValery Sizov <vsv2711@gmail.com>2015-04-06 20:07:45 +0300
commitb13c8b91bc3441e6012c5dd249f4689e0ae94704 (patch)
treef5219386c55bfdbc6921f53bc459ada4566fb404
parent06f330a229e616f29ace8e692f2d664e6b930114 (diff)
downloadgitlab-ci-fork_support.tar.gz
doc for api forksfork_support
-rw-r--r--doc/api/README.md1
-rw-r--r--doc/api/forks.md23
2 files changed, 24 insertions, 0 deletions
diff --git a/doc/api/README.md b/doc/api/README.md
index 9e3a868..95fe2f8 100644
--- a/doc/api/README.md
+++ b/doc/api/README.md
@@ -6,6 +6,7 @@
- [Runners](runners.md)
- [Commits](commits.md)
- [Builds](builds.md)
+- [Forks](forks.md)
## Authentication
diff --git a/doc/api/forks.md b/doc/api/forks.md
new file mode 100644
index 0000000..1a5ea80
--- /dev/null
+++ b/doc/api/forks.md
@@ -0,0 +1,23 @@
+# Forks API
+
+This API is intended to aid in the setup and configuration of
+forked projects on Gitlab CI.
+
+__Authentication is done by GitLab user token & GitLab project token__
+
+## Forks
+
+### Create fork for project
+
+
+
+```
+POST /forks
+```
+
+Parameters:
+
+ project_id (required) - The ID of a project
+ project_token (requires) - Project token
+ private_token(required) - User private token
+ data (required) - GitLab project data (name_with_namespace, web_url, default_branch, ssh_url_to_repo)