Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
go-gitee
提交
a4083c0d
G
go-gitee
项目概览
openeuler
/
go-gitee
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
go-gitee
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
a4083c0d
编写于
10月 24, 2019
作者:
存储OpenStack开源团队
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify return content type
上级
fc6ddce8
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
9 deletion
+7
-9
api/swagger.yaml
api/swagger.yaml
+1
-3
docs/RepositoriesApi.md
docs/RepositoriesApi.md
+2
-2
gitee/api_repositories.go
gitee/api_repositories.go
+4
-4
未找到文件。
api/swagger.yaml
浏览文件 @
a4083c0d
...
...
@@ -863,9 +863,7 @@ paths:
200
:
description
:
"
返回格式"
schema
:
type
:
"
array"
items
:
$ref
:
"
#/definitions/Content"
$ref
:
"
#/definitions/Content"
post
:
tags
:
-
"
Repositories"
...
...
docs/RepositoriesApi.md
浏览文件 @
a4083c0d
...
...
@@ -973,7 +973,7 @@ No authorization required
[
[Back to top]
](
#
)
[
[Back to API list
]
](../README.md#documentation-for-api-endpoints)
[
[Back to Model list]
](
../README.md#documentation-for-models
)
[
[Back to README
]
](../README.md)
# **GetV5ReposOwnerRepoContentsPath**
>
[]
Content GetV5ReposOwnerRepoContentsPath(ctx, owner, repo, path, optional)
> Content GetV5ReposOwnerRepoContentsPath(ctx, owner, repo, path, optional)
获取仓库具体路径下的内容
获取仓库具体路径下的内容
...
...
@@ -1001,7 +1001,7 @@ Name | Type | Description | Notes
### Return type
[
**
[]
Content**
](
Content.md
)
[
**Content**
](
Content.md
)
### Authorization
...
...
gitee/api_repositories.go
浏览文件 @
a4083c0d
...
...
@@ -2244,7 +2244,7 @@ RepositoriesApiService 获取仓库具体路径下的内容
* @param "AccessToken" (optional.String) - 用户授权码
* @param "Ref" (optional.String) - 分支、tag或commit。默认: 仓库的默认分支(通常是master)
@return
[]
Content
@return Content
*/
type
GetV5ReposOwnerRepoContentsPathOpts
struct
{
...
...
@@ -2252,13 +2252,13 @@ type GetV5ReposOwnerRepoContentsPathOpts struct {
Ref
optional
.
String
}
func
(
a
*
RepositoriesApiService
)
GetV5ReposOwnerRepoContentsPath
(
ctx
context
.
Context
,
owner
string
,
repo
string
,
path
string
,
localVarOptionals
*
GetV5ReposOwnerRepoContentsPathOpts
)
(
[]
Content
,
*
http
.
Response
,
error
)
{
func
(
a
*
RepositoriesApiService
)
GetV5ReposOwnerRepoContentsPath
(
ctx
context
.
Context
,
owner
string
,
repo
string
,
path
string
,
localVarOptionals
*
GetV5ReposOwnerRepoContentsPathOpts
)
(
Content
,
*
http
.
Response
,
error
)
{
var
(
localVarHttpMethod
=
strings
.
ToUpper
(
"Get"
)
localVarPostBody
interface
{}
localVarFileName
string
localVarFileBytes
[]
byte
localVarReturnValue
[]
Content
localVarReturnValue
Content
)
// create path and map variables
...
...
@@ -2325,7 +2325,7 @@ func (a *RepositoriesApiService) GetV5ReposOwnerRepoContentsPath(ctx context.Con
}
if
localVarHttpResponse
.
StatusCode
==
200
{
var
v
[]
Content
var
v
Content
err
=
a
.
client
.
decode
(
&
v
,
localVarBody
,
localVarHttpResponse
.
Header
.
Get
(
"Content-Type"
))
if
err
!=
nil
{
newErr
.
error
=
err
.
Error
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录