我有以下枚举类:
public enum ResearchData {
HEIGHT("Height"), WIDTH("Width"), WEIGHT("Height"), LENGTH("Length"), ITEM_DESCRIPTION(
"Item Description"), IMAGE_URL("Image URL");
private String value;
private ResearchData(String mimeType) {
value = mimeType;
}
public String getDisplayValue() {
return value;
}
public String value() {
return value;
}
public static ResearchData fromValue(String v) {
return valueOf(v);
}
}
我如何通过Jersey2 Rest API公开它? (作为json对象)使用Options/Get
?建议的方式是什么?