[
https://issues.apache.org/jira/browse/GEODE-7076?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Darrel Schneider resolved GEODE-7076.
-------------------------------------
Fix Version/s: 1.11.0
Resolution: Fixed
> Pdx should not have group, groups
> ---------------------------------
>
> Key: GEODE-7076
> URL: https://issues.apache.org/jira/browse/GEODE-7076
> Project: Geode
> Issue Type: Improvement
> Components: management
> Reporter: Gang Yan
> Assignee: Darrel Schneider
> Priority: Major
> Fix For: 1.11.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> For REST API V2 for management, Swagger shows that the model for Pdx includes
> "group", "groups".
> None of these should be specified when doing a POST Pdx. If you do specify
> group you get an error saying Pdx is only at the cluster level.
> group and groups comes from CacheElement. Could the Pdx class override them
> and mark them with @JsonIgnore?
> The java-api exposes these on Pdx and it would be best if it didn't. If we
> did some refactoring so that Pdx did not have these methods on it them this
> would clean up the rest-api automatically.
> Objective:
> # find a way to hide these attributes from Swagger docs.
> # is there a way to hide "group"/"groups" from the java api as well
> The best solution might be to just have "group" and not "groups".
--
This message was sent by Atlassian Jira
(v8.3.4#803005)