[
https://issues.apache.org/jira/browse/SCB-1031?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
jeho0815 updated SCB-1031:
--------------------------
Description:
@ApiResponse(code = 200, message = "200 is ok............", response =
String.class, responseHeaders = @ResponseHeader(name = "x-user-domain",
response = String.class))
@ApiOperation(nickname="getHelloworld", value="test", notes="this is a test",
response = Integer.class, code = 200,
responseHeaders =
{@ResponseHeader(name = "x-user-name", response = String.class),
@ResponseHeader(name = "x-user-id", response = String.class)}
)
swagger 's response's descritpion will be default "resoponse of 200", the best
descritpion should be "200 is ok............"
was:
@ApiResponse(code = 200, message = "200 is ok............", response =
String.class, responseHeaders = @ResponseHeader(name = "x-user-domain",
response = String.class))
@ApiOperation(nickname="getHelloworld", value="测试", notes="this is a test",
response = Integer.class, code = 200,
responseHeaders = {@ResponseHeader(name = "x-user-name", response =
String.class),
@ResponseHeader(name = "x-user-id", response = String.class)})
> Ignore the order of @APIOperation and @Resoponse on the method
> --------------------------------------------------------------
>
> Key: SCB-1031
> URL: https://issues.apache.org/jira/browse/SCB-1031
> Project: Apache ServiceComb
> Issue Type: Improvement
> Components: Java-Chassis
> Reporter: jeho0815
> Assignee: jeho0815
> Priority: Major
>
> @ApiResponse(code = 200, message = "200 is ok............", response =
> String.class, responseHeaders = @ResponseHeader(name = "x-user-domain",
> response = String.class))
> @ApiOperation(nickname="getHelloworld", value="test", notes="this is a
> test", response = Integer.class, code = 200,
> responseHeaders =
> {@ResponseHeader(name = "x-user-name", response = String.class),
> @ResponseHeader(name = "x-user-id", response = String.class)}
> )
>
> swagger 's response's descritpion will be default "resoponse of 200", the
> best descritpion should be "200 is ok............"
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)