gitlab api 使用问题

在我们使用gitlab获取数据的时候,一般返回的数据都是每页20条数据,但是如果我们想一次获取获取多于20条怎么办?其实gitlab有两个参数可以设置。page和per_page,可以分别设置页数和条数,加到请求参数里即可。
API如下:

Pagination

Sometimes the returned result will span across many pages. When listing
resources you can pass the following parameters:

Parameter Description
page Page number (default: 1)
per_page Number of items to list per page (default: 20, max: 100)

Inhalte