본문 바로가기

Web/HTTP

[Spring Http API Test] 테스트환경 만들기

728x90

 

 

[ IntelliJ ]

 

 

HttpRequest 파일 생성

 

 

 

 

 

예제 확인하기

 

 

 

이런 식으로 예제 확인이 가능하다 이걸 보고 필요한거 추가하믄 됨

### GET request with a header
GET https://httpbin.org/ip
Accept: application/json

### GET request with parameter
GET https://httpbin.org/get?show_env=1
Accept: application/json

### GET request with environment variables
GET {{host}}/get?show_env={{show_env}}
Accept: application/json

### GET request with disabled redirects
# @no-redirect
GET http://httpbin.org/status/301

### GET request with dynamic variables
GET http://httpbin.org/anything?id={{$uuid}}&ts={{$timestamp}}

###

 

 

 

코드 작성해보기

 

 

728x90

'Web > HTTP' 카테고리의 다른 글

[CORS]  (0) 2023.04.21