택시짱의 개발 노트

Spring Boot - RestAPI 본문

spring

Spring Boot - RestAPI

택시짱 2022. 7. 31. 00:23

Common

@RestController - Rest API 설정

@RequestMapping - 리소스를 설정 (method로 구분가능)

Get

@GetMapping - Get Resource 설정

@RequestParam - URL Query Param Parsing

@PathVariable - URL Path Variable Parsing

Object - Query Param Object로 Parsing

Post

@PostMapping - Post Resource 설정

@RequestBody - Request Body 부분 Parsing

@PathVariable - URL Path Variable Parsing

@JsonProperty - json naming

@JsonNaming - class json naming

Put

@PutMapping - Put Resource 설정

@RequestBody - Request Body 부분 Parsing

@PathVariable - URL Path Variable Parsing

Delete

@DeleteMapping - Delete Resource 설정

@RequestParam - URL Query Param Parsing

@PathVariable - URL Path Variable Parsing

Object - Query Param Object로 Parsing

반응형
Comments