diff options
author | Angus MacArthur <amacarthur@blackberry.com> | 2013-06-28 01:49:26 +0400 |
---|---|---|
committer | Angus MacArthur <amacarthur@blackberry.com> | 2013-07-09 01:34:00 +0400 |
commit | ea5a006f27cfd3013f94652e0e0f0e63091036ad (patch) | |
tree | af0e150d45b1f9102245595a3a5b14637b5809aa /doc/api/projects.md | |
parent | 7ebbb6e33f872651c8f92799570d58353a4a08b3 (diff) |
Additon of apis for fork administration.
Added ability to add and remove the forked from/to relatioinship
between existing repos.
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r-- | doc/api/projects.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index 323c0be63a4..41b6b6add39 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -453,3 +453,28 @@ Parameters: + `id` (required) - The ID of the project. + `branch` (required) - The name of the branch. + +## Admin fork relation + +Allows modification of the forked relationship between existing projects. . Available only for admins. + +### Create a forked from/to relation between existing projects. + +``` +POST /projects/:id/fork/:forked_from_id +``` + +Parameters: + ++ `id` (required) - The ID of the project ++ `forked_from_id:` (required) - The ID of the project that was forked from + +### Delete an existing forked from relationship + +``` +DELETE /projects/:id/fork +``` + +Parameter: + ++ `id` (required) - The ID of the project
\ No newline at end of file |