Skip to content

param.mock

Set mock data for API parameters.

Usage

properties
param.mock=@mock

Use the @mock tag in Javadoc to specify mock values for parameters:

java
/**
 * @param name username @mock admin
 */
@GetMapping("/user")
public User getUser(@RequestParam String name) { ... }

See Also

Released under the Apache-2.0 License.