7

I want to send <MYURL>/myaddres?path=<MYPATH>&content=<MYCONTENT> to a service with editor based REST client in IntelliJ, but take the content of <MYCONTENT> from a file.

Is it possible?

Dims
  • 47,675
  • 117
  • 331
  • 600

1 Answers1

8

Yes, you should type the < symbol followed by the path to the file:POST

POST http://example.com:8080/api/html/post
Content-Type: application/json

< ./input.json

More info: https://www.jetbrains.com/help/idea/exploring-http-syntax.html#provide-request-body

streetturtle
  • 5,472
  • 2
  • 25
  • 43