Skip to content

Commit 7c298aa

Browse files
committed
Mark ref params as optional in Contents docs
Other small clean ups for consistency.
1 parent df686ad commit 7c298aa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

content/v3/repos/contents.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This method returns the preferred README for a repository.
1616
### Parameters
1717

1818
ref
19-
: The String name of the Commit/Branch/Tag. Defaults to "master".
19+
: _Optional_ **string** - The String name of the Commit/Branch/Tag. Defaults to `master`.
2020

2121
### Response
2222

@@ -32,7 +32,7 @@ This method returns the contents of any file or directory in a repository.
3232
### Parameters
3333

3434
ref
35-
: The String name of the Commit/Branch/Tag. Defaults to "master".
35+
: _Optional_ **string** - The String name of the Commit/Branch/Tag. Defaults to `master`.
3636

3737
### Response
3838

@@ -55,8 +55,8 @@ to make a second `GET` request.
5555
archive_format
5656
: Either `tarball` or `zipball`
5757

58-
ref (optional)
59-
: _Optional_ valid Git reference, defaults to `master`
58+
ref
59+
: _Optional_ **string** - valid Git reference, defaults to `master`
6060

6161
### Response
6262

0 commit comments

Comments
 (0)