Skip to content
Snippets Groups Projects
Commit 2490cfbc authored by Sean Edge's avatar Sean Edge
Browse files

Update documentaiton for create_tag method.

parent 1e6766f9
No related branches found
No related tags found
1 merge request!7014Add CreateTagService. Use new service to allow tag creation through API.
Loading
Loading
@@ -35,6 +35,40 @@ Parameters:
]
```
 
## Create a new tag
Creates new tag in the repository that points to the supplied ref.
```
POST /projects/:id/repository/tags
```
Parameters:
+ `id` (required) - The ID of a project
+ `tag_name` (required) - The name of a tag
+ `ref` (required) - Create tag using commit sha, another tag name, or branch name.
```json
[
{
"name": "v1.0.0",
"commit": {
"id": "2695effb5807a22ff3d138d593fd856244e155e7",
"parents": [],
"message": "Initial commit",
"authored_date": "2012-05-28T04:42:42-07:00",
"author_name": "John Smith",
"author email": "john@example.com"
"committer_name": "Jack Smith",
"committed_date": "2012-05-28T04:42:42-07:00"
"committer_email": "jack@example.com"
},
"protected": false
}
]
```
## List repository tree
 
Get a list of repository files and directories in a project.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment