You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/03/21 06:35:54 UTC
[GitHub] [servicecomb-kie] zhulijian1 opened a new pull request #119: update
api doc
zhulijian1 opened a new pull request #119: update api doc
URL: https://github.com/apache/servicecomb-kie/pull/119
API文档PUT接口添加Content-Type header,并刷新为最新代码生成的API文档
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [servicecomb-kie] tianxiaoliang merged pull request #119: update
api doc
Posted by GitBox <gi...@apache.org>.
tianxiaoliang merged pull request #119: update api doc
URL: https://github.com/apache/servicecomb-kie/pull/119
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [servicecomb-kie] zhulijian1 commented on a change in pull request
#119: update api doc
Posted by GitBox <gi...@apache.org>.
zhulijian1 commented on a change in pull request #119: update api doc
URL: https://github.com/apache/servicecomb-kie/pull/119#discussion_r396185379
##########
File path: server/resource/v1/doc_struct.go
##########
@@ -24,14 +24,25 @@ import (
"github.com/go-chassis/go-chassis/server/restful"
)
-//swagger doc header params
+//swagger doc request header params
var (
DocHeaderDepth = &restful.Parameters{
DataType: "string",
Name: common.HeaderDepth,
ParamType: goRestful.HeaderParameterKind,
Desc: "integer, default is 1, if you set match policy, you can set,depth to decide label number",
}
+ DocHeaderContentType = &restful.Parameters{
+ DataType: "string",
+ Name: common.HeaderContentType,
+ ParamType: goRestful.HeaderParameterKind,
+ Required: true,
+ Desc: "used to indicate the media type of the resource, default is application/json",
Review comment:
改成了the value can be application/json or text/yaml,只支持这两种吧
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
[GitHub] [servicecomb-kie] tianxiaoliang commented on a change in pull
request #119: update api doc
Posted by GitBox <gi...@apache.org>.
tianxiaoliang commented on a change in pull request #119: update api doc
URL: https://github.com/apache/servicecomb-kie/pull/119#discussion_r396073931
##########
File path: server/resource/v1/doc_struct.go
##########
@@ -24,14 +24,25 @@ import (
"github.com/go-chassis/go-chassis/server/restful"
)
-//swagger doc header params
+//swagger doc request header params
var (
DocHeaderDepth = &restful.Parameters{
DataType: "string",
Name: common.HeaderDepth,
ParamType: goRestful.HeaderParameterKind,
Desc: "integer, default is 1, if you set match policy, you can set,depth to decide label number",
}
+ DocHeaderContentType = &restful.Parameters{
+ DataType: "string",
+ Name: common.HeaderContentType,
+ ParamType: goRestful.HeaderParameterKind,
+ Required: true,
+ Desc: "used to indicate the media type of the resource, default is application/json",
Review comment:
那么除了默认值还可以填什么
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services