docs-api icon indicating copy to clipboard operation
docs-api copied to clipboard

Git Trees API without path parameter!

Open jianboy opened this issue 4 years ago • 0 comments

Git Trees

param:
    owner
    repo
    sha(ref)

GET /repos/:owner/:repo/git/trees/:sha

The API only get root dir. but the sub directory can not get tree list. Here is github api:

param:
    owner
    repo
    ref
    path

https://api.github.com/repos/${owner}/${repo}/git/trees/${ref}${path.replace(/^\//, ':')}

it can not get a sub-tree.

jianboy avatar Aug 02 '21 09:08 jianboy