restfulobjects / restfulobjects-spec

The Restful Objects specification defines a set of RESTful resources, and corresponding JSON representations, for accessing and manipulating a domain object model.
http://restfulobjects.org
73 stars 10 forks source link

Sub-menu hint for object actions #10

Open adamhoward opened 11 years ago

adamhoward commented 11 years ago

We had a little discussion on the RO.NET forum[1] about contributed actions and we agreed that a sub-menu hint would be all that is needed to support this special grouping.

{ "memberType": "action", "subMenu":"Orders" ... }

Typing that out now I wonder if just the more generic "grouping":"Orders" is appropriate?

This would probably not be a per-instance kind of thing so maybe extensions and the formal domain model is where it belongs.

[1] http://restfulobjects.codeplex.com/discussions/389386

richardpawson commented 11 years ago

I'd prefer "grouping" or "group" to "subMenu" - because then it could be applied to properties. N.B. It was long the intention that Naked Objects (for Java) would support grouped properties but never implemented, I think. In NO.NET the need was partially obviated by Complex Types, though grouping of properties might still be useful.

Can I suggest that the format of the grouping anticipated sub-grouping, perhaps by being a comma separated list?