We should be agnostic about the encoder we use to return the hypermedia representation in an endpoint's response. #16 introduced a Present() function that returns a simple Representation type, which is essentially a map[string]interface{}. This maps pretty easily to encoder/json and in fact that was used as the response for the Discovery URL (#1).
This feature also overlaps with concerns for Endpoint Versioning (#2) at the media type level.
We should be agnostic about the encoder we use to return the hypermedia representation in an endpoint's response. #16 introduced a
Present()function that returns a simpleRepresentationtype, which is essentially amap[string]interface{}. This maps pretty easily toencoder/jsonand in fact that was used as the response for the Discovery URL (#1).This feature also overlaps with concerns for Endpoint Versioning (#2) at the media type level.