Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
水淹萌龙
kubesphere
提交
11e5d517
K
kubesphere
项目概览
水淹萌龙
/
kubesphere
与 Fork 源项目一致
Fork自
KubeSphere / kubesphere
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kubesphere
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
未验证
提交
11e5d517
编写于
6月 28, 2019
作者:
R
rayzhou2017
提交者:
GitHub
6月 28, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #515 from rayzhou2017/application-api-docs
Update application API docs
上级
e466edc7
cc5a632d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
10 deletion
+10
-10
pkg/apis/resources/v1alpha2/register.go
pkg/apis/resources/v1alpha2/register.go
+10
-10
未找到文件。
pkg/apis/resources/v1alpha2/register.go
浏览文件 @
11e5d517
...
...
@@ -114,13 +114,13 @@ func addWebService(c *restful.Container) error {
To
(
resources
.
ListApplication
)
.
Returns
(
http
.
StatusOK
,
ok
,
models
.
PageableResponse
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
)
.
Doc
(
"List a
pplications in
cluster"
)
.
Doc
(
"List a
ll applications deployed in the
cluster"
)
.
Param
(
webservice
.
QueryParameter
(
params
.
ConditionsParam
,
"query conditions"
)
.
Required
(
false
)
.
DataFormat
(
"key=value,key~value"
)
.
DefaultValue
(
""
))
.
Param
(
webservice
.
QueryParameter
(
"cluster_id"
,
"cluster
id
"
))
.
Param
(
webservice
.
QueryParameter
(
"runtime_id"
,
"runtime
id
"
))
.
Param
(
webservice
.
QueryParameter
(
"cluster_id"
,
"cluster
ID
"
))
.
Param
(
webservice
.
QueryParameter
(
"runtime_id"
,
"runtime
ID
"
))
.
Param
(
webservice
.
QueryParameter
(
params
.
PagingParam
,
"page"
)
.
Required
(
false
)
.
DataFormat
(
"limit=%d,page=%d"
)
.
...
...
@@ -130,12 +130,12 @@ func addWebService(c *restful.Container) error {
To
(
resources
.
ListNamespacedApplication
)
.
Returns
(
http
.
StatusOK
,
ok
,
models
.
PageableResponse
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
)
.
Doc
(
"List a
pplications
"
)
.
Doc
(
"List a
ll applications within the specified namespace
"
)
.
Param
(
webservice
.
QueryParameter
(
params
.
ConditionsParam
,
"query conditions"
)
.
Required
(
false
)
.
DataFormat
(
"key=value,key~value"
)
.
DefaultValue
(
""
))
.
Param
(
webservice
.
PathParameter
(
"namespace"
,
"namespace"
))
.
Param
(
webservice
.
PathParameter
(
"namespace"
,
"namespace
name
"
))
.
Param
(
webservice
.
QueryParameter
(
params
.
PagingParam
,
"page"
)
.
Required
(
false
)
.
DataFormat
(
"limit=%d,page=%d"
)
.
...
...
@@ -145,13 +145,13 @@ func addWebService(c *restful.Container) error {
To
(
resources
.
DescribeApplication
)
.
Returns
(
http
.
StatusOK
,
ok
,
applications
.
Application
{})
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
)
.
Doc
(
"Describe
application
"
)
.
Doc
(
"Describe
the specified application of the namespace
"
)
.
Param
(
webservice
.
PathParameter
(
"namespace"
,
"namespace name"
))
.
Param
(
webservice
.
PathParameter
(
"application"
,
"application
id
"
)))
Param
(
webservice
.
PathParameter
(
"application"
,
"application
ID
"
)))
webservice
.
Route
(
webservice
.
POST
(
"/namespaces/{namespace}/applications"
)
.
To
(
resources
.
DeployApplication
)
.
Doc
(
"Deploy application"
)
.
Doc
(
"Deploy a
new a
pplication"
)
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
)
.
Reads
(
openpitrix
.
CreateClusterRequest
{})
.
Returns
(
http
.
StatusOK
,
ok
,
errors
.
Error
{})
.
...
...
@@ -159,11 +159,11 @@ func addWebService(c *restful.Container) error {
webservice
.
Route
(
webservice
.
DELETE
(
"/namespaces/{namespace}/applications/{application}"
)
.
To
(
resources
.
DeleteApplication
)
.
Doc
(
"Delete application"
)
.
Doc
(
"Delete
the specified
application"
)
.
Metadata
(
restfulspec
.
KeyOpenAPITags
,
tags
)
.
Returns
(
http
.
StatusOK
,
ok
,
errors
.
Error
{})
.
Param
(
webservice
.
PathParameter
(
"namespace"
,
"namespace name"
))
.
Param
(
webservice
.
PathParameter
(
"application"
,
"application
id
"
)))
Param
(
webservice
.
PathParameter
(
"application"
,
"application
ID
"
)))
tags
=
[]
string
{
"User resources"
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录