content negotation1 Spring boot - blog application (REST API) : Versioning (버저닝) 버저닝(Versioning) REST APIs 4가지 버저닝 방법을 해볼 것인데요 1. URI Path 2. Query parameters 3. Custom headers 4. Content negotiation 버저닝을 해야되는 상황 request/response format이 바뀌었을 때 (xml, json) property name( name, productName) or 타입이 바뀌었을 때 요구받은 필드를 추가할 때 response에 대한 값을 제거할 때 Versioning through 1. URI Path http://www.example.com/api/v1/empolyees http://www.example.com/api/v2/products ex) Twitter, Pay Pal, Googl.. 2022. 8. 4. 이전 1 다음