Skip to content

Commit 8a34bb4

Browse files
committed
document the ref param in the repo contents api
1 parent 9314e03 commit 8a34bb4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/v3/repos/contents.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ This method returns the preferred README for a repository.
1313

1414
GET /repos/:user/:repo/readme
1515

16+
### Parameters
17+
18+
ref
19+
: The String name of the Commit/Branch/Tag. Defaults to "master".
20+
1621
### Response
1722

1823
<%= headers 200 %>
@@ -24,6 +29,11 @@ This method returns the contents of any file or directory in a repository.
2429

2530
GET /repos/:user/:repo/contents/:path
2631

32+
### Parameters
33+
34+
ref
35+
: The String name of the Commit/Branch/Tag. Defaults to "master".
36+
2737
### Response
2838

2939
<%= headers 200 %>

0 commit comments

Comments
 (0)