From b13c8b91bc3441e6012c5dd249f4689e0ae94704 Mon Sep 17 00:00:00 2001 From: Valery Sizov Date: Mon, 6 Apr 2015 20:07:45 +0300 Subject: doc for api forks --- doc/api/README.md | 1 + doc/api/forks.md | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 doc/api/forks.md (limited to 'doc/api') 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) -- cgit v1.2.1