79192056

Date: 2024-11-15 10:59:39
Score: 0.5
Natty:
Report link

Ok, the problem was this method:

  @GetMapping("/{id}")
  public ResponseEntity<PlanDeEntrenamiento> getPlanes(@PathVariable String id) {
    PlanDeEntrenamiento planDeEntrenamiento = planDeEntrenamientoDAO.findById(id).orElseThrow();
    return ResponseEntity.ok(planDeEntrenamiento);
  }

I have deleted it because I see there is no need for it, I had it because some test I did before and then didn't delete it. After deleting it, every put or patch to "/{id}" started working again. However, if someone can explain this to me that would be helpful.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ignacio Ovidio Muñoz Nicolás