How to list all filenames under a directory using github api?

Viewed 363

I need to list all the file names under a directory of my repository.

The following api can list filenames and directories from root directory.

https://api.github.com/repos/username/repo-name/git/trees/master?recursive=1

Found no appropriate api to list directory wise!

1 Answers
Related