8000 Supply the text values for `@ApiOperation, @ApiResponse, @ApiParam, @ApiModelProperty from an external resource file, instead of hardcoding? · Issue #1180 · springfox/springfox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Supply the text values for `@ApiOperation, @ApiResponse, @ApiParam, @ApiModelProperty from an external resource file, instead of hardcoding? #1180
Closed
@joethaw

Description

@joethaw

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0