Hi, I'm doing an app where I have to insert data in a database table, so far I'm just doing tests to see how retrofit works, the question is that I already make an example where I have to insert only id, name , and last name in the table, the id is autoincrement, and only the name and the last name I send it from a form, I already have defined my interface with its respective endpoint and the model class for the answer in json that only receives a status with its respective value to show it in a toast,
by pressing the registration button I get this error
I'm using SLIM 2 for the API
here is the function
$app->post('alta/:nombre/:apellidos', function($nombre,$apellidos) use ($app){
$conexion = getConnection();
$sql = "INSERT INTO tabla_comodin(nombre,apellidos) VALUES (:nombre,:apellidos)";
$consulta = $conexion->prepare($sql);
$consulta->bindParam("nombre",$nombre);
$consulta->bindparam("apellidos",$apellidos);
$consulta->execute();
if ($consulta->rowCount()!=0){
echo '{"estatus":"Este es una prueba desde el nuevo sistema con el metodo POST"}';
}else{
echo '{"estatus":"NO se pudo registrar el contactos"}';
}
$conexion = null;
});