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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
7d31cf86
Commit
7d31cf86
authored
Feb 20, 2017
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some grammar in the API docs
parent
173dbeb9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
doc/api/commits.md
doc/api/commits.md
+2
-2
doc/api/deploy_keys.md
doc/api/deploy_keys.md
+1
-1
lib/api/commits.rb
lib/api/commits.rb
+2
-2
No files found.
doc/api/commits.md
View file @
7d31cf86
...
@@ -12,8 +12,8 @@ GET /projects/:id/repository/commits
...
@@ -12,8 +12,8 @@ GET /projects/:id/repository/commits
| --------- | ---- | -------- | ----------- |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer/string | 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 |
|
`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
i
n this date will be returned in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ |
|
`since`
| string | no | Only commits after or
o
n this date will be returned in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ |
|
`until`
| string | no | Only commits before or
i
n this date will be returned in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ |
|
`until`
| string | no | Only commits before or
o
n this date will be returned in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ |
```
bash
```
bash
curl
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
"https://gitlab.example.com/api/v3/projects/5/repository/commits"
curl
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
"https://gitlab.example.com/api/v3/projects/5/repository/commits"
...
...
doc/api/deploy_keys.md
View file @
7d31cf86
...
@@ -137,7 +137,7 @@ Example response:
...
@@ -137,7 +137,7 @@ Example response:
## Delete deploy key
## Delete deploy key
Removes a deploy key from the project. If the deploy is used only for this project, it will be deleted from the system.
Removes a deploy key from the project. If the deploy
key
is used only for this project, it will be deleted from the system.
```
```
DELETE /projects/:id/deploy_keys/:key_id
DELETE /projects/:id/deploy_keys/:key_id
...
...
lib/api/commits.rb
View file @
7d31cf86
...
@@ -16,8 +16,8 @@ module API
...
@@ -16,8 +16,8 @@ module API
end
end
params
do
params
do
optional
:ref_name
,
type:
String
,
desc:
'The name of a repository branch or tag, if not given the default branch is used'
optional
:ref_name
,
type:
String
,
desc:
'The name of a repository branch or tag, if not given the default branch is used'
optional
:since
,
type:
DateTime
,
desc:
'Only commits after or
i
n this date will be returned'
optional
:since
,
type:
DateTime
,
desc:
'Only commits after or
o
n this date will be returned'
optional
:until
,
type:
DateTime
,
desc:
'Only commits before or
i
n this date will be returned'
optional
:until
,
type:
DateTime
,
desc:
'Only commits before or
o
n this date will be returned'
optional
:page
,
type:
Integer
,
default:
0
,
desc:
'The page for pagination'
optional
:page
,
type:
Integer
,
default:
0
,
desc:
'The page for pagination'
optional
:per_page
,
type:
Integer
,
default:
20
,
desc:
'The number of results per page'
optional
:per_page
,
type:
Integer
,
default:
20
,
desc:
'The number of results per page'
optional
:path
,
type:
String
,
desc:
'The file path'
optional
:path
,
type:
String
,
desc:
'The file path'
...
...
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