위도 경도 API 개발


위도 경도 API 개발

사용자 위도 경도 API Method: POST URL: /info Request @RequestBody private String memberId; private Double latitude; private Double longitude; Response Status Code: 200 OK Exception 404 UserNotFoundException: memberId Not Found 401: Unauthorized (추후에 추가할 예정) 500 updateQueryException: update Fail 500: Server ScheduleController Controller에서 memberId, latitude, longitude를 받아 Service 단으로 넘긴다. 조건을 두개로 분리하였다. 만약 기존의 위도/경도 정보가 없을 경우 save로 insert 쿼리문을.. 만약 원래 있었다면 update 쿼리문으로 설정하였다. ..코드 생략 /** * 위도/경도 * * @pa...



원문링크 : 위도 경도 API 개발