Repository navigation
refactor: /users 구 경로 4개를 제거한다 - #153
Merged
Merged
Conversation
#83 에서 호환을 위해 남겨둔 경로들이다. 본인 확인은 들어가 있었지만 경로에 남의 ID 를 넣을 수 있는 것처럼 보였다. PUT /users/{userId}/location → PUT /users/me/location PUT /users/{userId}/profile-image → PUT /users/me/profile-image PUT /users/{userId}/deactivate → PUT /users/me/deactivate DELETE /users/{userId} → DELETE /users/me 프런트를 확인했다. /users/me/profile-image 만 쓰고 나머지 구 경로는 호출하지 않는다 (#91 이 "프런트에서 실제로 쓰는 것은 /users/{userId}/location 하나" 라고 적었는데, 그 사이 /users/me/* 로 전환돼 있었다). 이슈가 요구한 "접근제어 계약 테스트에서 해당 경로가 404 인지 확인" 을 넣었다. 셋은 PUT 이라 put 을 쓰는 privilegedMappingsRemovedFromUserApi 에 넣었고, DELETE 는 별도 테스트로 확인한다. GET 으로 두드리면 매핑이 남아 있어도 405 가 나와 구분이 약해진다. #91 의 다른 항목(가입 요청 전용 DTO)은 이미 적용돼 있다 — POST /auth/register 가 SignUpRequest 를 받는다. - OpenAPI 226 → 222 경로 - 전체 테스트 661개, 실패 0 Refs #91
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #91
#83 에서 호환을 위해 남겨둔 경로들입니다. 본인 확인은 들어가 있었지만 경로에 남의 ID 를 넣을 수 있는 것처럼 보였습니다.
PUT /users/{userId}/locationPUT /users/me/locationPUT /users/{userId}/profile-imagePUT /users/me/profile-imagePUT /users/{userId}/deactivatePUT /users/me/deactivateDELETE /users/{userId}DELETE /users/me프런트 확인
/users/me/profile-image만 쓰고 나머지 구 경로는 호출하지 않습니다.테스트
이슈가 요구한 "접근제어 계약 테스트에서 해당 경로가 404 인지 확인" 을 넣었습니다.
셋은 PUT 이라
put을 쓰는privilegedMappingsRemovedFromUserApi에 넣었고, DELETE 는 별도 테스트로 확인합니다. GET 으로 두드리면 매핑이 남아 있어도 405 가 나와 구분이 약해집니다.#91 의 나머지 항목
"가입 요청 전용 DTO 분리" 는 이미 적용돼 있습니다 —
POST /auth/register가UserDto가 아니라SignUpRequest를 받습니다. 이슈 본문이 우려한 "role/provider/isActive가 Swagger 에 설정 가능한 것처럼 보이는" 상태가 아닙니다.숫자