Why I Hate Your API

Patrick Finucane
Dec 23, 2017 · 2 min read

Your HTTP API Returns 200 on Error

You Return “OK” On an Empty Post/Put Request

You Converted your XML API to JSON (But not really)

$xml = simplexml_load_string($xml_string);
$json = json_encode($xml);
$array = json_decode($json,TRUE);
Patrick Finucane

Written by

CTO of Freedom Driven

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade