[
https://issues.jboss.org/browse/FORGE-2734?page=com.atlassian.jira.plugin...
]
James Strachan commented on FORGE-2734:
---------------------------------------
good point!
I wonder if we could define a constant, say, `org.jboss.forge.ui.Results.ENTITY` or
something - and make that constant be that same thing as a String. So for now we could
adopt using the same String value for now until the new forge release is out when we can
all switch to the official constant expression?
Result should allow an entity POJO to be added
----------------------------------------------
Key: FORGE-2734
URL:
https://issues.jboss.org/browse/FORGE-2734
Project: Forge
Issue Type: Enhancement
Reporter: James Strachan
when using an IDE or a REST API it can be handy to have a command that returns some
result object that can be a blob of data that can be parsed/used by a program rather than
textual console output.
e.g. return a blob of JSON from a REST GET/POST on a forge command.
We have a message a String which is great for textual status messages. But it might be
nice to add an optional _entity_ property which folks could access from an IDE or REST API
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)