There is a lot of documentation for RESTful services. I need more Information about the returning representations.
What is the best way for design the return value for RESTful ervices?
Example:
GET /rest/cars
: list with carsGET /rest/cars/1234
: the car with the ID 1234
For RESTful services:
- Should the return values (car-objects) have the same attributes?
- Can the detail object have more attributes then the list objects?
- in which case must the objects be the same?