curl 명령어로 API 호출정보 받앗을 때 postman에서 호출하는법

뿌이·2023년 6월 22일
0

목록 보기
28/31

https://learning.postman.com/docs/getting-started/importing-and-exporting-data/#importing-data-into-postman

포스트맨에서 import -> curl 로 시작하는 명령어 웅앵을 복붙 한다. -> 자동으로 만들어짐
이때 주의사항.

 "responseTime": "2023-03-13T06:54:05.979Z",
  "status": 200,
  "reason": "no error",
  "responseHeaders": [
    {
      "value": "CP=\"ALL DSP COR MON LAW IVDi HIS IVAi DELi SAMi OUR 
      LEG PHY UNI ONL DEM STA INT NAV PUR FIN OTC GOV\"",
      "key": "p3p"
    },
    {
      "value": "application/json;charset=utf-8",
      "key": "Content-Type"
    },
    {
      "value": "51",
      "key": "Content-Length"
    },
    {
      "value": "Mon, 13 Mar 2023 06:54:05 GMT",
      "key": "Date"
    }
  ],
  "responseData": "{\"resultCode\":200,\"resultMsg\":\"\",\"resultData\":null}",
  "responseLength": 51,
  "requestLength": 4108,
  "duration": 12201
}

이런 response정보 보내주는 개발자도 있는데..
이런건 필요가읍다..

무조건 curl로 시작하는 명령어중에 request정보가 있는 명령어만 복붙하면 postman이 잘 만들어진다.

profile
기록이 쌓이면 지식이 된다.

0개의 댓글