I got a lot of questions today. I am trying to figure out this issue for almost a month .. Is the following code segment a rest API (it's in laravel)?
public function index() {
$data = Data::get();
return response()->json($data, 200);
}
If yes, then why it is different from an API, if not then what will make it a rest api ? Someone told me it's nothing but a json response of data, Is that true ?