I have a method of my API that searches the database
@RequestMapping(method = RequestMethod.GET, value = "/entidadesUsuarioPermissao/{id}", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Collection<PermissoesPaginas>> buscarEntidadesUsuarioP(@PathVariable Long id) {
Collection<PermissoesPaginas> entidadesBuscados = ppService.buscarTodas(id);
return new ResponseEntity<>(entidadesBuscados, HttpStatus.OK);
}
and comes all the information I need:
However,whenIdebugthefrontendtheentityobjectdoesnotappear
Thisismyanswerthatarrivesatthefrontend
Notethattheentityobjectdoesnotappear.
Thefront-endmethodisthis:
$http({method:'GET',url:'/entidadesUsuarioPermissao/'+id}).then(function(response){$scope.usuarios=response.data;},function(response){console.log(response.data);console.log(response.status);});
consoleexitonscreen