on 2018 Feb 07 7:38 PM
If I were to hit this end point with the platformwebservices brought into my project it returns XML. Is there a parameter I can pass that would allow this to return JSON?
http://localhost:9001/ws410/rest/countries
I'm on hybris 6.1 if that matters too.
Request clarification before answering.
Pass application/json as required accept type
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@RequestMapping(value = "/rest/countries", method = RequestMethod.GET, produces = { MediaType.APPLICATION_JSON_VALUE })
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.