Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
636dbc85
Commit
636dbc85
authored
Aug 31, 2016
by
Achilleas Pipinellis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The ID of a project can be also a string
[ci skip]
parent
98a380c0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
doc/api/commits.md
doc/api/commits.md
+7
-7
doc/api/projects.md
doc/api/projects.md
+4
-4
No files found.
doc/api/commits.md
View file @
636dbc85
...
...
@@ -10,7 +10,7 @@ GET /projects/:id/repository/commits
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer | yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`id`
| integer
/string
| yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`ref_name`
| string | no | The name of a repository branch or tag or if not given the default branch |
|
`since`
| string | no | Only commits after or in this date will be returned in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ |
|
`until`
| string | no | Only commits before or in this date will be returned in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ |
...
...
@@ -58,7 +58,7 @@ Parameters:
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer | yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`id`
| integer
/string
| yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`sha`
| string | yes | The commit hash or name of a repository branch or tag |
```
bash
...
...
@@ -102,7 +102,7 @@ Parameters:
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer | yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`id`
| integer
/string
| yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`sha`
| string | yes | The commit hash or name of a repository branch or tag |
```
bash
...
...
@@ -138,7 +138,7 @@ Parameters:
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer | yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`id`
| integer
/string
| yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`sha`
| string | yes | The commit hash or name of a repository branch or tag |
```
bash
...
...
@@ -187,7 +187,7 @@ POST /projects/:id/repository/commits/:sha/comments
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer | yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`id`
| integer
/string
| yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`sha`
| string | yes | The commit SHA or name of a repository branch or tag |
|
`note`
| string | yes | The text of the comment |
|
`path`
| string | no | The file path relative to the repository |
...
...
@@ -232,7 +232,7 @@ GET /projects/:id/repository/commits/:sha/statuses
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer | yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`id`
| integer
/string
| yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`sha`
| string | yes | The commit SHA
|
`ref_name`
| string | no | The name of a repository branch or tag or, if not given, the default branch
|
`stage`
| string | no | Filter by
[
build stage
](
../ci/yaml/README.md#stages
)
, e.g.,
`test`
...
...
@@ -306,7 +306,7 @@ POST /projects/:id/statuses/:sha
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer | yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`id`
| integer
/string
| yes | The ID of a project or NAMESPACE/PROJECT_NAME owned by the authenticated user
|
`sha`
| string | yes | The commit SHA
|
`state`
| string | yes | The state of the status. Can be one of the following:
`pending`
,
`running`
,
`success`
,
`failed`
,
`canceled`
|
`ref`
| string | no | The
`ref`
(branch or tag) to which the status refers
...
...
doc/api/projects.md
View file @
636dbc85
...
...
@@ -535,7 +535,7 @@ POST /projects/:id/star
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
|
`id`
| integer
/string
| yes | The ID of the project or NAMESPACE/PROJECT_NAME |
```
bash
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
"https://gitlab.example.com/api/v3/projects/5/star"
...
...
@@ -602,7 +602,7 @@ DELETE /projects/:id/star
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
|
`id`
| integer
/string
| yes | The ID of the project or NAMESPACE/PROJECT_NAME |
```
bash
curl
--request
DELETE
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
"https://gitlab.example.com/api/v3/projects/5/star"
...
...
@@ -673,7 +673,7 @@ POST /projects/:id/archive
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
|
`id`
| integer
/string
| yes | The ID of the project or NAMESPACE/PROJECT_NAME |
```
bash
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
"https://gitlab.example.com/api/v3/projects/archive"
...
...
@@ -760,7 +760,7 @@ POST /projects/:id/unarchive
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer | yes | The ID of the project or NAMESPACE/PROJECT_NAME |
|
`id`
| integer
/string
| yes | The ID of the project or NAMESPACE/PROJECT_NAME |
```
bash
curl
--request
POST
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
"https://gitlab.example.com/api/v3/projects/unarchive"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment