반응형
! 기록을 위한 포스트입니다.
curl 명령어로 엑셀다운로드 API를 호출해서 파일을 다운로드 받을 수 있다.
swagger로 api를 관리한다면 Swagger UI에서 api를 호출 해보면 Responses에 curl 부분에 api 주소와 파라메터가 조합된 명령어가 표기되니 복사해서 끝에 --output 파일명 만 붙여주면 된다.
curl -X POST "API주소" -H "accept: */*" -H "Content-Type: application/json" -d "파라메터" --output 파일명
반응형
'Dev > etc' 카테고리의 다른 글
[Ubuntu] Ubuntu Nginx install(우분투 Nginx 설치) (0) | 2023.10.10 |
---|---|
[NodeJs] can not found 'webpack' error 해결 (0) | 2023.09.06 |
[puppeteer] how to puppeteer click not working 해결 (0) | 2023.05.22 |
[GitHub] github upload project(깃허브 프로젝트 업로드하기) (0) | 2023.04.20 |
[구름IDE] Error: Unable to access jarfile 오류 해결방법 (0) | 2023.04.20 |