Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669025ybitch please, you get to complain when you have to send JSON with XML embedded in it and the same with responses.
for example: -
C0D4669025y@gazza101uk
yea, its a pain.
proxy api grabs the xml, and forwards it to another service, but rather then just parsing the json and building the xml its self, the devs just grab the xml and send it as is, putting the responsibility on the sender. -
It's not something I haven't seen. A RESTful API should ideally accept JSON and return JSON, but the latter is typical of such an API. Accepting an XML is of course business-dependent. Sometimes an API accepts both XML and JSON - it just depends on what the client wants.
-
My situations once:
SOAP API, returns json with encrypted XML data that you can decrypt using a private key THEY provided you with
Related Rants
So this API i'm integrating with wants me to post XML. Yet it's response comes back in JSON!
What the actual fuck?
rant
php
stupid developers
integration
api