Issue 10168

Define a JSON wrapper for the 300 disambiguation

10168
Reporter: omeyn
Type: Epic
Summary: Define a JSON wrapper for the 300 disambiguation
Priority: Major
Resolution: Fixed
Status: Closed
Created: 2011-11-08 09:55:20.187
Updated: 2013-12-09 14:01:27.413
Resolved: 2011-11-08 09:56:44.155


Author: omeyn@gbif.org
Created: 2011-11-08 09:55:58.365
Updated: 2011-11-08 09:55:58.365
        
Markus Döring Fri, 16 Sep at 6:07am
http://en.wikipedia.org/wiki/Wikipedia:Disambiguation

Markus Döring Fri, 16 Sep at 6:10am
Wikipedia always returns a http 200 success, no matter if its a disambiguation page or a proper page.
For example: http://en.wikipedia.org/wiki/Joker and http://en.wikipedia.org/wiki/Joker_(comics)
    


Author: omeyn@gbif.org
Created: 2011-11-08 09:56:22.51
Updated: 2011-11-08 09:56:22.51
        
Markus Döring Fri, 16 Sep at 6:02am
http://tools.ietf.org/html/rfc2616#page-61

Markus Döring Fri, 16 Sep at 6:04am
10.3.1 300 Multiple Choices The requested resource corresponds to any one of a set of representations, each with its own specific location, and agent- driven negotiation information (section 12) is being provided so that the user (or user agent) can select a preferred representation and redirect its request to that location. Unless it was a HEAD request, the response SHOULD include an entity containing a list of resource characteristics and location(s) from which the user or user agent can choose the one most appropriate. The entity format is specified by the media type given in the Content- Type header field. Depending upon the format and the capabilities of the user agent, selection of the most appropriate choice MAY be performed automatically. However, this specification does not define any standard for such automatic selection. If the server has a preferred choice of representation, it SHOULD include the specific URI for that representation in the Location field; user agents MAY use the Location field value for automatic redirection. This response is cacheable unless indicated otherwise.

Markus Döring Fri, 16 Sep at 6:05am
"The entity format is specified by the media type given in the Content-Type header field"So that means we can happily return a json list with the available options

Markus Döring Thu, 29 Sep at 9:44am
Added to clb-ws:util.MultipleChoices