REST Web Services also supports other ways of specifying the representation format using the URI. The Web Services work similarly specifying the representation format in the Accept HTTP header.
Example 1:
GET /caisd-rest/chg/400001.xml HTTP/1.1
GET /caisd-rest/chg/400001.json HTTP/1.1
GET /caisd-rest/chg.feed HTTP/1.1
Example 2:
GET /caisd-rest/chg/400001?_type=xml HTTP/1.1
GET /caisd-rest/chg/400001?_type=json HTTP/1.1
GET /caisd-rest/chg?_type=atom HTTP/1.1
Consider the following information:
|
Copyright © 2013 CA.
All rights reserved.
|
|