mirror of
https://codeberg.org/gitnex/GitNex
synced 2025-02-04 05:09:11 +01:00
api interface for sub dirs
Signed-off-by: M M Arif <mmarif@swatian.com>
This commit is contained in:
parent
572f93d35c
commit
5c9b53f5ab
@ -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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user