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/23 02:25:46 UTC

[GitHub] [servicecomb-kie] zhulijian1 commented on a change in pull request #119: update api doc

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