You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// swagger:operation GET /repos/{owner}/{repo}/contents-ext/{filepath} repository repoGetContentsExt
910
+
// ---
911
+
// summary: The extended "contents" API, get file metadata and/or content, or list a directory.
912
+
// description: It guarantees that only one of the response fields is set if the request succeeds.
913
+
// produces:
914
+
// - application/json
915
+
// parameters:
916
+
// - name: owner
917
+
// in: path
918
+
// description: owner of the repo
919
+
// type: string
920
+
// required: true
921
+
// - name: repo
922
+
// in: path
923
+
// description: name of the repo
924
+
// type: string
925
+
// required: true
926
+
// - name: filepath
927
+
// in: path
928
+
// description: path of the dir, file, symlink or submodule in the repo
929
+
// type: string
930
+
// required: true
931
+
// - name: ref
932
+
// in: query
933
+
// description: "The name of the commit/branch/tag. Default to the repository’s default branch."
934
+
// type: string
935
+
// required: false
936
+
// - name: ref
937
+
// in: query
938
+
// description: "The name of the commit/branch/tag. Default to the repository’s default branch."
939
+
// type: string
940
+
// required: false
941
+
// - name: includes
942
+
// in: query
943
+
// description: Set it to "file_content" to retrieve the file content when requesting a file, otherwise the response only contains the file's metadata.
944
+
// type: string
945
+
// required: false
946
+
// responses:
947
+
// "200":
948
+
// "$ref": "#/responses/ContentsExtResponse"
949
+
// "404":
950
+
// "$ref": "#/responses/notFound"
951
+
952
+
// TODO: add more includes options, like "lfs_content"
0 commit comments