일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Greedy
- 라이브템플릿
- brute force
- Dijkstra
- beandefinitionstoreexception
- counting elements
- 탐욕법
- 알고리즘
- algorithm
- HTTP
- 프로그래머스
- Python
- 최단경로
- 2018 KAKAO BLIND RECRUITMENT
- API
- 2981
- Spring
- 문자열
- 코딩테스트
- springboot
- javascript
- 파이썬
- applicationeventpublisher
- 백준
- error
- codility
- spring security
- java
- BFS
- 소수
- Today
- Total
목록HTTP (2)
Altiora Petamus

Intro REST API 의 다양한 사용법에 대해 알아봅니다. 모든 테스트는 Postman 을 활용해 진행했습니다. HTTP Request 기본 사용법 @RestController @RequestMapping("/mapping/users") public class MappingClassController { @GetMapping public String user() { return "get users"; } @PostMapping public String addUser() { return "post user"; } @GetMapping("/{userId}") public String findUser(@PathVariable String userId) { return "get userId=" + user..

Intro REST API 에 대해 학습하면서 정리하는 글입니다. HTTP Request mapping 이하 모든 API 는 "ok" 라는 텍스트를 반환합니다. 기본 요청 @RestController public class MappingController { private Logger log = LoggerFactory.getLogger(getClass()); @RequestMapping("/hello-basic") public String helloBasic() { log.info("helloBasic"); return "ok"; } } "/hello-basic" or "/hello-basic/" 모두 허용 HTTP method 모두 허용 : GET, POST, PUT, PATCH, DELETE, HE..