api interface for sub dirs

Signed-off-by: M M Arif <mmarif@swatian.com>
This commit is contained in:
M M Arif 2019-10-03 21:32:09 +05:00
parent 572f93d35c
commit 5c9b53f5ab
1 changed files with 3 additions and 0 deletions

View File

@ -221,4 +221,7 @@ public interface ApiInterface {
@GET("repos/{owner}/{repo}/contents/{file}") // get single file contents
Call<Files> getSingleFileContents(@Header("Authorization") String token, @Path("owner") String ownerName, @Path("repo") String repoName, @Path("file") String file);
@GET("repos/{owner}/{repo}/contents/{fileDir}") // get all the sub files and dirs of a repository
Call<List<Files>> getDirFiles(@Header("Authorization") String token, @Path("owner") String ownerName, @Path("repo") String repoName, @Path("file") String fileDir);
}