cancel
Showing results for 
Search instead for 
Did you mean: 

When an API call is made to CAP metadata returns in json format

girish6
Associate
Associate
0 Kudos
200

Hi 

When an API call is made to the CAP backend service it returns in json format but for our usecase we need it to return in xml . (we don't manage the api call so adding Accept -application/xml in the header is not possible).

 

View Entire Topic
mpah
Participant
0 Kudos

Out of the box CAP Metadata is XML, so not sure why you are getting JSON. What happens when you append

?$format=XML

girish6
Associate
Associate
0 Kudos
It says something like metadata should be the last parameter..
martinstenzig
Contributor
0 Kudos
Agree with @mpah, can you provide an example of how you get json metadata? I.e. What request are you sending and in what environment (is there an automatic translation going on somewhere on the client side)?