[forge-issues] [JBoss JIRA] (FORGE-2734) Result should allow an entity POJO to be added

James Strachan (JIRA) issues at jboss.org
Thu Mar 2 12:22:00 EST 2017


    [ https://issues.jboss.org/browse/FORGE-2734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13371727#comment-13371727 ] 

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)


More information about the forge-issues mailing list