GitHub API: Fetch all folders and Files in Single GET Request -



GitHub API: Fetch all folders and Files in Single GET Request -

in github api, can issue request of

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

to recursively fetch of trees of repository. in add-on giving me of directories, gives me urls can utilize download individual files:

[...] { "mode": "100644", "type": "blob", "sha": "abc1234", "path": "path/to/file.txt", "size": 104361, "url": "https://api.github.com/repos/owner/repo/git/blobs/abc1234" }, [...]

while recursive=1 piece prevents me having create new request every directory in repository, still have create individual phone call every file. i've looked through github api docs, don't nowadays way this. it's there isn't way fetch files , folders in single request, wanted inquire here verify have no other option.

the way single request current contents archive: http://developer.github.com/v3/repos/contents/#get-archive-link

actually, it's 2 requests since initial response 302 redirect.

github github-api

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -