fix: 지원서-문서 연결 업데이트 오류 수정 #92
Merged
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.
Resolved Issue
PR Description
public record ApplicationFormDocumentRequest( Long id, - Long documentId )요청 예시
get /documents
{ "id": 5, "type": "RESUME", "title": "배민 이력서", "lastModifiedDate": "2025-09-02", "latestVersion": 1, "applicationForms": [] }, { "id": 6, "type": "RESUME", "title": "네이버 이력서", "lastModifiedDate": "2025-09-02", "latestVersion": 1, "applicationForms": [] }, { "id": 7, "type": "RESUME", "title": "카카오 이력서", "lastModifiedDate": "2025-09-02", "latestVersion": 2, "applicationForms": [] }, { "id": 8, "type": "RESUME", "title": "쿠팡 이력서", "lastModifiedDate": "2025-09-02", "latestVersion": 3, "applicationForms": [] }post /application-forms
{ "companyName": "네이버", "companyAddress": "경기도", "companyUrl": "naver.com", "companyScale": "대기업", "position": "백엔드 개발자", "status": "PLANNED", "documents": [ { "id": 5 }, { "id": 6 } ] }get /application-forms/1
{ "id": 1, "companyName": "네이버", "companyAddress": "경기도", "companyUrl": "naver.com", "companyScale": "대기업", "position": "백엔드 개발자", "status": "PLANNED", "schedules": [], "documents": [ { "id": 5, "type": "RESUME", "title": "배민 이력서" }, { "id": 6, "type": "RESUME", "title": "네이버 이력서" } ] }이 상태에서
5(배민 이력서)는 유지
6(네이버 이력서)는 삭제
7(카카오 이력서), 8(쿠팡 이력서)를 추가하고 싶다면
put /application-forms/1
{ "companyName": "네이버", "companyAddress": "경기도", "companyUrl": "naver.com", "companyScale": "대기업", "position": "백엔드 개발자", "status": "PLANNED", "schedules": [], "documents": [ { "id": 5 }, { "id": 7 }, { "id": 8 } ] }get /application-forms/1
{ "id": 1, "companyName": "네이버", "companyAddress": "경기도", "companyUrl": "naver.com", "companyScale": "대기업", "position": "백엔드 개발자", "status": "PLANNED", "schedules": [], "documents": [ { "id": 5, "type": "RESUME", "title": "배민 이력서" }, { "id": 7, "type": "RESUME", "title": "카카오 이력서" }, { "id": 8, "type": "RESUME", "title": "쿠팡 이력서" } ] }