Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @RestController
- @RequestMapping("/api/v1/note")
- public class NoteController {
- @Autowired
- private final NoteService noteService;
- @PostMapping
- public ResponseEntity<String> create(@Valid @RequestBody final NoteDto noteDto){
- noteService.create(noteDto);
- return new ResponseEntity<>("sucess", HttpStatus.CREATED);
- }
- }
Add Comment
Please, Sign In to add comment