Skip to content

Commit b22f1dc

Browse files
committed
fix
1 parent 04783f5 commit b22f1dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/api/v1/repo/file.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,8 @@ func GetContentsExt(ctx *context.APIContext) {
911911
// summary: The extended "contents" API, to get file metadata and/or content, or list a directory.
912912
// description: It guarantees that only one of the response fields is set if the request succeeds.
913913
// Users can pass "includes=file_content" or "includes=lfs_metadata" to retrieve more fields.
914+
// "includes=file_content" only works for single file, if you need to retrieve file contents in batch,
915+
// use "file-contents" API after listing the directory.
914916
// produces:
915917
// - application/json
916918
// parameters:

0 commit comments

Comments
 (0)