My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Problem with the integration of Prestashop API with Angular!

Mohamed Ayadi's photo
Mohamed Ayadi
·Feb 27, 2019

Hi,

I have "Prestashop v1.7.5" and I want it to be compatible with Angular know that when l use GET with "output_format=JSON' the response is JSON format but when l use POST or PUT, the API doesn't accept JSON format instead it accepts XML format only.

My question is: Is there any solution to convert JSON data sent from the Angular app to XML so it can send it back to the API and vice versa.

Thank you