Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
go-gitee
提交
fc6ddce8
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 搜索 >>
提交
fc6ddce8
编写于
10月 24, 2019
作者:
存储OpenStack开源团队
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix get content exception
上级
3b63f67f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
4 addition
and
5 deletion
+4
-5
README.md
README.md
+1
-1
api/swagger.yaml
api/swagger.yaml
+1
-2
docs/RepositoriesApi.md
docs/RepositoriesApi.md
+1
-1
gitee/api_repositories.go
gitee/api_repositories.go
+1
-1
未找到文件。
README.md
浏览文件 @
fc6ddce8
...
...
@@ -184,7 +184,7 @@ Class | Method | HTTP request | Description
*RepositoriesApi*
|
[
**GetV5ReposOwnerRepoCommitsRefComments**
](
docs/RepositoriesApi.md#getv5reposownerrepocommitsrefcomments
)
|
**Get**
/v5/repos/{owner}/{repo}/commits/{ref}/comments | 获取单个Commit的评论
*RepositoriesApi*
|
[
**GetV5ReposOwnerRepoCommitsSha**
](
docs/RepositoriesApi.md#getv5reposownerrepocommitssha
)
|
**Get**
/v5/repos/{owner}/{repo}/commits/{sha} | 仓库的某个提交
*RepositoriesApi*
|
[
**GetV5ReposOwnerRepoCompareBaseHead**
](
docs/RepositoriesApi.md#getv5reposownerrepocomparebasehead
)
|
**Get**
/v5/repos/{owner}/{repo}/compare/{base}...{head} | 两个Commits之间对比的版本差异
*RepositoriesApi*
|
[
**GetV5ReposOwnerRepoContentsPath**
](
docs/RepositoriesApi.md#getv5reposownerrepocontentspath
)
|
**Get**
/v5/repos/{owner}/{repo}/contents
(/{path})
| 获取仓库具体路径下的内容
*RepositoriesApi*
|
[
**GetV5ReposOwnerRepoContentsPath**
](
docs/RepositoriesApi.md#getv5reposownerrepocontentspath
)
|
**Get**
/v5/repos/{owner}/{repo}/contents
/{path}
| 获取仓库具体路径下的内容
*RepositoriesApi*
|
[
**GetV5ReposOwnerRepoContributors**
](
docs/RepositoriesApi.md#getv5reposownerrepocontributors
)
|
**Get**
/v5/repos/{owner}/{repo}/contributors | 获取仓库贡献者
*RepositoriesApi*
|
[
**GetV5ReposOwnerRepoForks**
](
docs/RepositoriesApi.md#getv5reposownerrepoforks
)
|
**Get**
/v5/repos/{owner}/{repo}/forks | 查看仓库的Forks
*RepositoriesApi*
|
[
**GetV5ReposOwnerRepoKeys**
](
docs/RepositoriesApi.md#getv5reposownerrepokeys
)
|
**Get**
/v5/repos/{owner}/{repo}/keys | 获取仓库已部署的公钥
...
...
api/swagger.yaml
浏览文件 @
fc6ddce8
...
...
@@ -814,7 +814,7 @@ paths:
description
:
"
返回格式"
schema
:
$ref
:
"
#/definitions/Content"
/v5/repos/{owner}/{repo}/contents
(/{path})
:
/v5/repos/{owner}/{repo}/contents
/{path}
:
get
:
tags
:
-
"
Repositories"
...
...
@@ -866,7 +866,6 @@ paths:
type
:
"
array"
items
:
$ref
:
"
#/definitions/Content"
/v5/repos/{owner}/{repo}/contents/{path}
:
post
:
tags
:
-
"
Repositories"
...
...
docs/RepositoriesApi.md
浏览文件 @
fc6ddce8
...
...
@@ -26,7 +26,7 @@ Method | HTTP request | Description
[
**GetV5ReposOwnerRepoCommitsRefComments**
](
RepositoriesApi.md#GetV5ReposOwnerRepoCommitsRefComments
)
|
**Get**
/v5/repos/{owner}/{repo}/commits/{ref}/comments | 获取单个Commit的评论
[
**GetV5ReposOwnerRepoCommitsSha**
](
RepositoriesApi.md#GetV5ReposOwnerRepoCommitsSha
)
|
**Get**
/v5/repos/{owner}/{repo}/commits/{sha} | 仓库的某个提交
[
**GetV5ReposOwnerRepoCompareBaseHead**
](
RepositoriesApi.md#GetV5ReposOwnerRepoCompareBaseHead
)
|
**Get**
/v5/repos/{owner}/{repo}/compare/{base}...{head} | 两个Commits之间对比的版本差异
[
**GetV5ReposOwnerRepoContentsPath**
](
RepositoriesApi.md#GetV5ReposOwnerRepoContentsPath
)
|
**Get**
/v5/repos/{owner}/{repo}/contents
(/{path})
| 获取仓库具体路径下的内容
[
**GetV5ReposOwnerRepoContentsPath**
](
RepositoriesApi.md#GetV5ReposOwnerRepoContentsPath
)
|
**Get**
/v5/repos/{owner}/{repo}/contents
/{path}
| 获取仓库具体路径下的内容
[
**GetV5ReposOwnerRepoContributors**
](
RepositoriesApi.md#GetV5ReposOwnerRepoContributors
)
|
**Get**
/v5/repos/{owner}/{repo}/contributors | 获取仓库贡献者
[
**GetV5ReposOwnerRepoForks**
](
RepositoriesApi.md#GetV5ReposOwnerRepoForks
)
|
**Get**
/v5/repos/{owner}/{repo}/forks | 查看仓库的Forks
[
**GetV5ReposOwnerRepoKeys**
](
RepositoriesApi.md#GetV5ReposOwnerRepoKeys
)
|
**Get**
/v5/repos/{owner}/{repo}/keys | 获取仓库已部署的公钥
...
...
gitee/api_repositories.go
浏览文件 @
fc6ddce8
...
...
@@ -2262,7 +2262,7 @@ func (a *RepositoriesApiService) GetV5ReposOwnerRepoContentsPath(ctx context.Con
)
// create path and map variables
localVarPath
:=
a
.
client
.
cfg
.
BasePath
+
"/v5/repos/{owner}/{repo}/contents
(/{path})
"
localVarPath
:=
a
.
client
.
cfg
.
BasePath
+
"/v5/repos/{owner}/{repo}/contents
/{path}
"
localVarPath
=
strings
.
Replace
(
localVarPath
,
"{"
+
"owner"
+
"}"
,
fmt
.
Sprintf
(
"%v"
,
owner
),
-
1
)
localVarPath
=
strings
.
Replace
(
localVarPath
,
"{"
+
"repo"
+
"}"
,
fmt
.
Sprintf
(
"%v"
,
repo
),
-
1
)
localVarPath
=
strings
.
Replace
(
localVarPath
,
"{"
+
"path"
+
"}"
,
fmt
.
Sprintf
(
"%v"
,
path
),
-
1
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录