Documentacion de la api en el readme

This commit is contained in:
2021-04-30 20:36:17 -04:00
parent 477a72476b
commit 0708a0997f
4 changed files with 257 additions and 13 deletions

View File

@@ -32,7 +32,7 @@ class UsuariosController extends Controller {
return response()->json([
'pagination' => $paginate,
'data' => array_values(Usuario::all()->skip($paginate['from'] - 1 )->take($paginate['per_page'])->all())
'data' => array_values(Usuario::with('restaurantes')->skip($paginate['from'] - 1 )->take($paginate['per_page'])->get()->all())
]);
}