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

Repo tree per_page now 100 due to API limitation and it is now a constant 😉

parent 2496ead0
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
Loading
@@ -17,6 +17,7 @@ interface GitLabService {
 
companion object {
const val API_VERSION = "api/v4"
const val TREE_PER_PAGE = "100"
}
 
/* --- LOGIN --- */
Loading
Loading
@@ -289,7 +290,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=1000")
@GET(API_VERSION + "/projects/{id}/repository/tree?per_page=" + TREE_PER_PAGE)
fun getTree(@Path("id") projectId: Long,
@Query("ref_name") branchName: String?,
@Query("path") path: String?): Single<List<RepositoryTreeObject>>
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