Skip to content

Commit a35e116

Browse files
committed
return 404 w/ a json object explaining why we cant
1 parent c316b94 commit a35e116

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

content/v3/git/trees.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Git DB Trees API v3 | developer.github.com
66

77
## Get a Tree
88

9-
GET /repos/:user/:repo/trees/:sha
9+
GET /repos/:user/:repo/git/trees/:sha
1010

1111
### Response
1212

@@ -15,7 +15,7 @@ title: Git DB Trees API v3 | developer.github.com
1515

1616
## Get a Tree Recursively
1717

18-
GET /repos/:user/:repo/trees/:sha?recursive=1
18+
GET /repos/:user/:repo/git/trees/:sha?recursive=1
1919

2020
### Response
2121

@@ -29,7 +29,7 @@ tree and a nested path modifying that tree are specified, it will
2929
overwrite the contents of that tree with the new path contents and write
3030
a new tree out.
3131

32-
POST /repos/:user/:repo/trees
32+
POST /repos/:user/:repo/git/trees
3333

3434
### Parameters
3535

@@ -59,7 +59,7 @@ tree.sha
5959
### Response
6060

6161
<%= headers 201,
62-
:Location => "https://api.github.com/git/:user/:repo/tree/:sha" %>
62+
:Location => "https://api.github.com/repos/:user/:repo/git/trees/:sha" %>
6363
<%= json :sha => "3a0f86fb8db8eea7ccbb9a95f325ddbedfb25e15", :size =>
6464
30 %>
6565

0 commit comments

Comments
 (0)