Skip to content
Snippets Groups Projects
Unverified Commit 37fc5bd7 authored by Noah Prail's avatar Noah Prail
Browse files

Improved per_page

parent 0a031ea7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -17,7 +17,7 @@ interface GitLabService {
 
companion object {
const val API_VERSION = "api/v4"
const val MAX_TREE_PER_PAGE = "100"
const val MAX_PER_PAGE = "100"
}
 
/* --- USERS --- */
Loading
Loading
@@ -285,7 +285,7 @@ interface GitLabService {
@GET("$API_VERSION/projects/{id}/repository/contributors")
fun getContributors(@Path("id") projectId: String): Single<List<Contributor>>
 
@GET("$API_VERSION/projects/{id}/repository/tree?per_page=$MAX_TREE_PER_PAGE")
@GET("$API_VERSION/projects/{id}/repository/tree?per_page=$MAX_PER_PAGE")
fun getTree(@Path("id") projectId: Long,
@Query("ref") ref: String?,
@Query("path") path: String?): Single<List<RepositoryTreeObject>>
Loading
Loading
@@ -315,7 +315,7 @@ interface GitLabService {
* *
* @return all the labels within a project
*/
@GET("$API_VERSION/projects/{id}/labels?per_page=$MAX_TREE_PER_PAGE")
@GET("$API_VERSION/projects/{id}/labels?per_page=$MAX_PER_PAGE")
fun getLabels(@Path("id") projectId: Long): Single<List<Label>>
 
/**
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment