I am new to RESTful web services. Please bear with me if I am asking a silly question. I spent several hours on this. But, couldn't come with a solution.
My question is: When I GET the data (using the GET method in my resource) from the database in XML format it returns all the fields(as XmlElement) in my entity. Now, I want to add a resource link within that XML output for each entity, something like this:
<persons> 
  <person>  
    <name>abc</name>  
    <title>xyz</title>
    <personResource>http://localhost:8080/personInfomation/resources/persons/abc
  </person>
  .....
  .....
  .....
  <person>
    <name>efg</name>
    <title>zzz</title>
    <personResource>http://localhost:8080/personInformation/resources/persons/efg
  </person>
</persons>
Could you please tell me how I can achieve this?
I am using Jersey, Oracle and Tomcat for my development.
thanks, Sam.