Project: springxd
Issue XD-555: make application/json the default output type for the REST API?
the top-level URL works via simple curl (without an Accept header) or the browser: {code} > curl http://localhost:8080 {"links":[{"rel":"streams","href":"http://localhost:8080/streams"},{"rel":"triggers","href":"http://localhost:8080/triggers"},{"rel":"jobs","href":"http://localhost:8080/jobs"},{"rel":"taps","href":"http://localhost:8080/taps"},{"rel":"counters","href":"http://localhost:8080/metrics/counters"}]} {code} However, trying any of those links then fails, e.g.: {code} > curl http://localhost:8080/streams Could not marshal [PagedResource { content: [links: [<http://localhost:8080/streams/mqttdemo>;rel="self"]], metadata: Metadata { number: 0, total pages: 1, total elements: 1, size: 20 }, links: [] }]: null; nested exception is javax.xml.bind.MarshalException - with linked exception: [com.sun.istack.internal.SAXException2: unable to marshal type "org.springframework.xd.rest.client.domain.StreamDefinitionResource" as an element because it is not known to this context.] {code}
Story points: 2