This topic has not yet been written. The content below is from the topic description.
The Yaml provider recognises three mime types: text/x-yaml text/yaml application/x-yaml This is an example of how to use Yaml in a resource method. import javax.ws.rs.Consumes; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; @Path("/yaml") public class YamlResource { @GET @Produces("text/x-yaml") public MyObject getMyObject() { return createMyObject(); } ... }