본문 바로가기
푸닥거리

curl 로 graphql 호출하기

by [김경민]™ ┌(  ̄∇ ̄)┘™ 2022. 5. 3.
728x90

curl 로 graphql 호출하기


curl --insecure -XPOST -H "Content-Type: application/json" 'https://programmers.pe.kr:4000/graphql' --data '{"query":"query { __typename }"}'

curl --insecure -XPOST -H "Content-Type: application/json" 'https://programmers.pe.kr:4000/graphql' --data '{"query":"query { books { title } }"}'

 

728x90

댓글