Below is the code to create your own api using prestashop database.
webservice.php
<?php
error_reporting(-1);
ini_set('display_errors', 'On');
//if(isset($_GET['format']) && intval($_GET['num'])) {
//Set our variables
$format = strtolower($_GET['format']);
//$num = intval($_GET['num']);
$db_ho...