Skip to content

Commit

Permalink
Merge pull request #133 from Pyments/hotfix/medication-putMapping
Browse files Browse the repository at this point in the history
hotfix: ajusta o PutMapping
  • Loading branch information
Bruno0M authored Nov 19, 2024
2 parents 289dce6 + 16c10be commit 85f955e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public ResponseEntity createMedication(@RequestBody @Valid MedicationRequest med


@Operation(summary = "Edita o medicamento selecionado.", method = "PUT")
@PutMapping()
@PutMapping("/{id}")
public ResponseEntity updateMedication(String id,@RequestBody @Valid MedicationRequest updateMedication){
var response = this.medService.updateMedication(id, updateMedication);
return ResponseEntity.status(response.getStatus()).body(response);
Expand All @@ -59,4 +59,4 @@ public ResponseEntity deleteMedication(@PathVariable String id){
return ResponseEntity.status(response.getStatus()).body(response);
}

}
}

0 comments on commit 85f955e

Please sign in to comment.