Http-api design with json.