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
92a1f62a
Commit
92a1f62a
authored
Oct 15, 2020
by
Maxwell Power
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update API Pagination response headers
Reflecting that they now return lower case responses.
parent
0e47e508
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
doc/api/README.md
doc/api/README.md
+22
-22
doc/user/gitlab_com/index.md
doc/user/gitlab_com/index.md
+3
-3
No files found.
doc/api/README.md
View file @
92a1f62a
...
@@ -374,22 +374,22 @@ curl --head --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.exampl
...
@@ -374,22 +374,22 @@ curl --head --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.exampl
The response will then be:
The response will then be:
```
http
```
http
HTTP
/
1.1
200
OK
HTTP/
2
200 OK
Cache-C
ontrol
:
no-cache
cache-c
ontrol: no-cache
Content-L
ength
:
1103
content-l
ength: 1103
Content-T
ype
:
application/json
content-t
ype: application/json
D
ate
:
Mon, 18 Jan 2016 09:43:18 GMT
d
ate: Mon, 18 Jan 2016 09:43:18 GMT
L
ink
:
<https://gitlab.example.com/api/v4/projects/8/issues/8/notes?page=1&per_page=3>; rel="prev", <https://gitlab.example.com/api/v4/projects/8/issues/8/notes?page=3&per_page=3>; rel="next", <https://gitlab.example.com/api/v4/projects/8/issues/8/notes?page=1&per_page=3>; rel="first", <https://gitlab.example.com/api/v4/projects/8/issues/8/notes?page=3&per_page=3>; rel="last"
l
ink: <https://gitlab.example.com/api/v4/projects/8/issues/8/notes?page=1&per_page=3>; rel="prev", <https://gitlab.example.com/api/v4/projects/8/issues/8/notes?page=3&per_page=3>; rel="next", <https://gitlab.example.com/api/v4/projects/8/issues/8/notes?page=1&per_page=3>; rel="first", <https://gitlab.example.com/api/v4/projects/8/issues/8/notes?page=3&per_page=3>; rel="last"
S
tatus
:
200 OK
s
tatus: 200 OK
V
ary
:
Origin
v
ary: Origin
X-Next-P
age
:
3
x-next-p
age: 3
X-P
age
:
2
x-p
age: 2
X-Per-P
age
:
3
x-per-p
age: 3
X-Prev-P
age
:
1
x-prev-p
age: 1
X-Request-I
d
:
732ad4ee-9870-4866-a199-a9db0cde3c86
x-request-i
d: 732ad4ee-9870-4866-a199-a9db0cde3c86
X-R
untime
:
0.108688
x-r
untime: 0.108688
X-T
otal
:
8
x-t
otal: 8
X-Total-P
ages
:
3
x-total-p
ages: 3
```
```
#### Other pagination headers
#### Other pagination headers
...
@@ -398,12 +398,12 @@ GitLab also returns the following additional pagination headers:
...
@@ -398,12 +398,12 @@ GitLab also returns the following additional pagination headers:
| Header | Description |
| Header | Description |
| --------------- | --------------------------------------------- |
| --------------- | --------------------------------------------- |
|
`
X-T
otal`
| The total number of items |
|
`
x-t
otal`
| The total number of items |
|
`
X-Total-P
ages`
| The total number of pages |
|
`
x-total-p
ages`
| The total number of pages |
|
`
X-Per-P
age`
| The number of items per page |
|
`
x-per-p
age`
| The number of items per page |
|
`
X-P
age`
| The index of the current page (starting at 1) |
|
`
x-p
age`
| The index of the current page (starting at 1) |
|
`
X-Next-P
age`
| The index of the next page |
|
`
x-next-p
age`
| The index of the next page |
|
`X-
Prev-P
age`
| The index of the previous page |
|
`X-
prev-p
age`
| The index of the previous page |
NOTE:
**Note:**
NOTE:
**Note:**
For GitLab.com users,
[
some pagination headers may not be returned
](
../user/gitlab_com/index.md#pagination-response-headers
)
.
For GitLab.com users,
[
some pagination headers may not be returned
](
../user/gitlab_com/index.md#pagination-response-headers
)
.
...
...
doc/user/gitlab_com/index.md
View file @
92a1f62a
...
@@ -541,9 +541,9 @@ Source:
...
@@ -541,9 +541,9 @@ Source:
For performance reasons, if a query returns more than 10,000 records, GitLab
For performance reasons, if a query returns more than 10,000 records, GitLab
doesn't return the following headers:
doesn't return the following headers:
-
`
X-T
otal`
.
-
`
x-t
otal`
.
-
`
X-Total-P
ages`
.
-
`
x-total-p
ages`
.
-
`rel="last"`
`
L
ink`
.
-
`rel="last"`
`
l
ink`
.
### Rack Attack initializer
### Rack Attack initializer
...
...
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