Skip to content

Commit

Permalink
refs #4
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorAmrm committed Feb 9, 2021
1 parent 4b44cf5 commit 4383ed3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/javax.validation/validation-api -->
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>

<!-- Swagger e Swagger UI -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ public class ProfileController {
public Profile getProfile(@PathVariable("id") long id) throws NotFoundException {
return findService.findById(id);
}

@PutMapping("/{id}")
public Profile updateProfile(@PathVariable("id") long id,@RequestBody Profile profile) throws NotFoundException{
return updateService.updateProfile(id, profile);
}

@DeleteMapping("/{id}")
public void deleteProfile(@PathVariable("id") long id) {
deleteService.deleteProfile(id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
@Data
@Builder
public class ProfileDTO {
@NotBlank()
private long id;

//private Course course;
@NotBlank(message = "Campo deve ter no minimo 10")
@Size(min=10,max=1000)
Expand Down

0 comments on commit 4383ed3

Please sign in to comment.