project/DevOps : 코드스테이츠 (2022.02.07-2022.06.07)

[Postman]포스트맨 설치

용감한 개복치 2022. 2. 17. 18:33

INDEX

 

1. postman

2. 설치

3. 리눅스버전 포스트맨 - curl


1. Postman

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

- 공홈발췌

웹 개발을 할 때 API를 다루는 것은 필수다. 개발한 API가 잘 서버에 도착했는지, 개발자가 원하는 형태로 갔는지, 프론트단에서 확인 해 주지 않고도 확인해야한다. 그럴때 사용하는 툴인데 일단 GUI고 사용이 쉽다. 사실 난 예뻐서 쓴다. 혼자 다 짜면 상관 없겠지만 졸업과제에서도 프론트단과 백단을 나누게 되니 현업에서는 더더욱 필요하지않을까?

 

2. 설치

홈페이지에서 다운부터 받는다.

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

로그인 각자 하고 나면

파란 화살표 부분에 다운로드가 있다. 다운로드 클릭사실 끝이다. 다시 설치파일 눌러주면 로그인 한번 더 하고 끝!사용법은 다음 포스트

 

3. 리눅스버전 - curl

포스트맨이 GUI 버전이라면, 여기는 CLI 버전이다.

리눅스는 기본적으로 내장된 명령어.

윈도우 버전을 찾는다면 아래 링크로!

https://winampplugins.co.uk/curl/ 

 

curl 7.53.1 for Windows with HTTP/2 & IPv6 support

Pre-compiled builds of curl for Windows built with OpenSSL (1.0.2k), HTTP/2 (ngttp2/1.19.0), zlib (1.2.11) & IPv6 support. Plus it has no install dependencies!

winampplugins.co.uk

 

curl [option] <url>

저 위치의 데이터들을 받아와서 띄운것.[option]다양한건 아래 링크로.중요한것만!아무것도 안쓰기 : GET-d : POST

-X : 리퀘스트 시 사용할 method 종류 기술

-o : 기본적을 콘솔에 출력하는데 -o 뒤에 FILE을 적으면 해당 파일에 저장

 

보기힘드니까jq를 적용해서 예쁘게 보자

 

curl [option] <url> | jp

+) 안뜬 다면 sudo apt install jp

 

*** 참고문헌 ***

 

https://www.lesstif.com/software-architect/curl-http-get-post-rest-api-14745703.html

 

curl 설치 및 사용법 - HTTP GET/POST, REST API 연계등

서버의 정상 동작 여부를 점검할 경우 SSL 인증서 검증 제외(-k) 와 301, 302 Redirect 시 따라 가는 옵션(-L)을 추가하는 것이 안전하다.

www.lesstif.com

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