cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Returning JSON with Web Services

0 Likes
1,688

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.

View Entire Topic
Former Member
0 Likes

Pass application/json as required accept type

0 Likes

I tried passing that as the content type and im still getting XML back

Former Member
0 Likes

Sorry, not content type but Accept header