Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Is it possible to return a custom object from REST service?

Hi,

based on this article (https://jazz.net/library/LearnItem.jsp?href=content/docs/web-ui-programming/web-ui-todo-rest.html#mozTocId501066), I've created a custom REST service.
 
I'd like to return a custom object instead of a Jazz modeled object. I've seen that the calling is expecting an EObject implementation. Is there a jazz class that I can extend in order to use it as a custom object?
 
Thanks,
Michele.

0 votes



2 answers

Permanent link
You could try extending EObjectImpl or BasicEObjectImpl.

0 votes


Permanent link
Any Jazz article or wiki page about how to implement an extension for that EObjectImpl class?

Could we use our IParameterWrapper implementation class as a returning object too?
class CustomRESTParams extends EObjectImpl implements IParameterWrapper {
Thanks in advance.
Cheers.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941
× 137
× 1

Question asked: Nov 30 '12, 7:41 a.m.

Question was seen: 8,239 times

Last updated: Apr 14 '16, 5:46 a.m.

Confirmation Cancel Confirm