REST API

포스트맨 사용법

iminu 2022. 6. 17. 17:59

Postman 이란 (https://www.getpostman.com/)

A powerful GUI platform to make your API development faster & easier, from building API requests through testing, documentation and sharing.

postman은 api개발을 빠르고 쉽게 만들어 주는 gui플랫폼이다. 

포스트맨 좌측에서 collection을 만든다.

콜렉션의 더보기를 클릭해서 add request를 누른다.

post ,put같이 body가 필요할때 json 형식으로 대입할 수 있다. http method도 url왼쪽에서 고를 수 있다.

params에서 파라미터들을 입력하면 query string에 알맞은 형식으로 들어간다.

send 를 누르면 api테스트가 되고 아래에서 return 결과를 받아볼 수 있다.