Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to specify format in url

 
sruti vijay
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My url appears in the following format

http://localhost:8080//resources/test/user/2
where the details of the user with id=2 will be published in xml format

i want my url to appear in the following format

http://localhost:8080//resources/test/user/2.xml to publish in xml format

and

http://localhost:8080//resources/test/user/2.json to publ;ish in json format

please help me.

Thanks and Regards
Sruthi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic