What is an appropriate format for returning version-history of a resource via http
问题 I am designing a ReSTful web service which provides a versioned resource. What is an appropriate return format (content-type) for returning a version history? 回答1: RFC5829 describes a version history but does not suggest a return format. First we assume you have a URL pointing to each version of the resource as in: /path/to/resource/ - returns latest /path/to/resource/v1 - returns version v1 /path/to/resource/v2 - returns version v2 So what you actually want is to return a collection of links