api.name
Set the API name.
Usage
properties
api.name=#nameThe value can be:
- A Javadoc tag name (e.g.,
#nameuses the first line of Javadoc) - A Groovy script (e.g.,
groovy:it.name()) - A regex pattern
- A static string
Example
Use Javadoc first line as API name
properties
api.name=#namejava
/**
* Get user list
*/
@GetMapping("/users")
public List<User> listUsers() {}The API name will be "Get user list".
Strip Controller suffix
properties
api.name=#regex:^(.+)Controller$=$1Custom logic with Groovy
properties
api.name=groovy:it.name().replace("Controller", "").replace("Resource", "")