-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🔀 :: (#120) 게시글 작성 API #123
base: main
Are you sure you want to change the base?
Conversation
|
||
@ResponseStatus(HttpStatus.NO_CONTENT) | ||
@DeleteMapping("/{feed-id}") | ||
public void deleteFeed(@PathVariable("feed-id") Integer feedId) { | ||
deleteFeedService.execute(feedId); | ||
} | ||
|
||
@ResponseStatus(HttpStatus.CREATED) | ||
@PostMapping | ||
public void createFeed(@Valid @RequestBody CreateFeedRequest request) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이것도 순서가..
@NotBlank(message = "title은 Null, 공백, 띄어쓰기를 허용하지 않습니다.") | ||
private String title; | ||
|
||
@NotNull(message = "content은 Null, 공백, 띄어쓰기를 허용하지 않습니다.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
얘도 는..
@NotNull(message = "feed_type은 Null일 수 없습니다.") | ||
private FeedType feedType; | ||
|
||
@NotNull(message = "category은 Null일 수 없습니다.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이건 @notblank
Kudos, SonarCloud Quality Gate passed! |
close #120