Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- python
- RecursionError: maximum recursion depth exceeded while calling a Python object
- AESCipher
- Creon
- creon login
- API
- The Internet
- stock trading
- Auto Login
- request param
- automated system
- Web Crawler
- header
- Version Control
- EC2
- Stock
- ExceptionHandler
- handleMethodsArgumentNotValid
- WebServer
- mongodb
- mime type
- AWS
- Daishin Securities
- spec
- URI
- Rest
- Instance
- Slack
- KOSDAQ
- pyinstaller
Archives
- Today
- Total
Change the Better World
How to control version? 본문
There are 4 methods
1. URI
@GetMapping(path = "/v1/users/{id}") //uri
2. Request Parameter
@GetMapping(path = "/users/{id}", params = "version=1") //request param
3. mime type
@GetMapping(path="/users/{id}", headers="X-API-VER=1") // header
4. header
@GetMapping(value = "/users/{id}", produces = "application/vnd.company.appv1+json") //mime type
'REST' 카테고리의 다른 글
Why @ExceptionHandler(Exception.class) would not catch handleMethodsArgumentNotValid? (0) | 2022.09.30 |
---|---|
RESTful Web Service (0) | 2022.09.26 |
Comments