HTTP GET query param vs path param


Path param : {url}/users/123 형태

Not found시, 404 error를 내려주길 원할때

Query param : {url}/users?id=123 형태

  1. optional한 값이 있을때
  2. Not found시 특정한 값을 내려주길 원할때





© 2020. by berrrrr

Powered by berrrrr