CS/HTTP

Postman

ChaeHing 2023. 3. 28. 18:26

Postman

HTTP API 테스트 도구

브라우저로 api를 호출 할수 있지만 불편하기 때문에 해당 프로그램을 이용하면 좋음

 

https://www.postman.com/

 

Postman API Platform | Sign Up for Free

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.

www.postman.com

  1. HTTP 메서드를 선택
  2. endpoint 입력 -> 쿼리를 직접 넣어도됨
  3. 요청 버튼 - API call
  4. 파라미터 설정 -> 같이 보낼 쿼리를 key value 형태로 설정
    • 2번에서 쿼리를 직접 넣으면 자동으로 생성됨
  5. 응답 메시지 부분 
    1. 3번에서 요청(request)시 반환되는 응답 메시지
    2. body와 header등을 확인 가능

 

 

** POST 메소드 같이 요청시 body가 필요하면 위에 4번 부분에서 body를 선택해 입력할수 있다.