http
-
Http 파라미터 방식과 멱등성개발 2021. 10. 28. 19:05
Http 파라미터 받는 방식 정리 오늘 좀 어이없는 이슈가 있었는데 정리해보려고 한다. 1. 오늘 있었던 일 프론트에서 특정 post method api 가 500 에러가 뜬다는 이슈 발생 swagger 에서 테스트해보니 너무 잘 동작함 즉 에러 재현이 안됨 프론트쪽에 request url 어떻게 보냈는지 여쭤 봄 프론트에서는 post method 이니 당연히 body data 로 파라미터를 보냄 그런데 그 api 는 query param 을 받는 post method api 였음 위 과정 약 1시간 반 소요.. 2. 문제 분석 path param, query param, body data 의 차이를 몰랐다 POST 에서는 늘 body data 로 파라미터를 받아 왔는데, 이 API 만 Query Par..