Closed
Description
I want to supply the text values for @ApiOperation
, @ApiResponse
, @ApiParam
, @ApiModelProperty
from an external resource file, instead of hardcoding.
For example, say I have a file swaggerDocs.xml
<messages>
<message id="my_api_name">My API</message>
<message id="my_api_notes">This is my API</message>
</messages>
In the controller java, I want to be able to
@ApiOperation(value = "my_api_name", notes = "my_api_notes")
And springfox be able to translate the ids into text strings to be use in swagger json.
Is there a way to achieve this?
Thanks.