springdoc-openapiサンプルのSakeResponse.java
@Value | |
public class SakeResponse { | |
Integer id; | |
String name; | |
String brewingName; | |
public static SakeResponse newInstance(Sake sake) { | |
return new SakeResponse(sake.getId(), sake.getName(), sake.getBrewingName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment