summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaco Guzman <pacoguzmanp@gmail.com>2016-04-22 14:07:25 +0200
committerPaco Guzman <pacoguzmanp@gmail.com>2016-04-29 09:26:52 +0200
commitc4b9bd041321df25764ad1de90f89b1f0dda9f33 (patch)
tree2517d2fdcf07838902a7eb7fedb788bcc5fa786d /doc
parenta792427eed95570da22844a06a09227730443189 (diff)
downloadgitlab-ce-c4b9bd041321df25764ad1de90f89b1f0dda9f33.tar.gz
API support for the 'since' and 'until' operators on commit requests
- Parameter validation as ISO8601 format
Diffstat (limited to 'doc')
-rw-r--r--doc/api/commits.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/commits.md b/doc/api/commits.md
index 6341440c58b..57c2e1d9b87 100644
--- a/doc/api/commits.md
+++ b/doc/api/commits.md
@@ -12,6 +12,8 @@ GET /projects/:id/repository/commits
| --------- | ---- | -------- | ----------- |
| `id` | integer | yes | The ID of a project |
| `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 |
```bash
curl -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/5/repository/commits"