-
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
[FEAT] response body 수정 (json return 값) #9
Labels
enhancement
New feature or request
Comments
chhs2131
added a commit
that referenced
this issue
Sep 22, 2022
현재 반환 상태 꿍참정상반환{
"status": 200,
"code": "",
"message": "",
"body": {
"index": 999,
"name": "안녕하세요",
"registerDate": "2022-09-22"
},
"timestamp": "2022-09-22T15:43:55.905"
} CustomException{
"status": 404,
"code": "T000",
"message": "yeah",
"body": [],
"timestamp": "2022-09-22T15:44:07.6"
} |
chhs2131
added a commit
that referenced
this issue
Sep 22, 2022
이렇게 하면 모든 모든 반환이 ResponseEntity 형태가 되어버림. |
chhs2131
added a commit
that referenced
this issue
Sep 26, 2022
Feature/#9 - 공통 반환 데이터 클래스 작성 (1차 취합용)
@psw9999 침범하지마 |
chhs2131
added a commit
that referenced
this issue
Sep 30, 2022
chhs2131
added a commit
that referenced
this issue
Oct 2, 2022
chhs2131
added a commit
that referenced
this issue
Oct 2, 2022
chhs2131
added a commit
that referenced
this issue
Oct 2, 2022
chhs2131
added a commit
that referenced
this issue
Oct 5, 2022
chhs2131
added a commit
that referenced
this issue
Oct 6, 2022
chhs2131
added a commit
that referenced
this issue
Oct 6, 2022
chhs2131
added a commit
that referenced
this issue
Oct 6, 2022
204 ( no content) 헤더에 대해 200 헤더로 바꾸는 작업을 추가함.
HTTP HEADER 200 OK
{
"status": 204,
"code": "IS000",
"message": "조건에 맞는 조회 결과가 없습니다.",
"body": [],
"timestamp": "2022-10-07T19:34:09.344"
} |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
적용 예시 (인터넷에 있던 자료)
참고
CustomResponse DTO
ControllerAdvice
With Filter, Interceptor, AOP
ResponseBodyAdvice
The text was updated successfully, but these errors were encountered: