Hi, anyone familiar with the IntelliJ Http Client...
# random
m
Hi, anyone familiar with the IntelliJ Http Client? The .http file is right besides my classes, but I want to store the example payload someplace else in the project. Is there some way to make the path relative to the project root? Currently I have to do the following workaround...
Copy code
POST <http://localhost:8080/csv/parsemanually>
Content-Type: text/csv
< ../../../../../../../../../data/example_35263313.csv
###
... which isn't nice 😄 Thanks!
g
maybe just move .http file closer to sample data? %)
I don’t think that they provide variables, such as project path. But it actually would be very helpful. Also, you can use {{placeholders}} to pass path when you run script It will require settings this variable on run configuration creation
m
Moving the file / payload is also only a workaround, I think I even prefer the
..
workaround. Mhm, maybe I can use the placeholder inside the filepath and create the
rest-client.env.json
with gradle. I'll try it out 🙂
It seems variables don't work inside the file path. Too bad 😕
g
ahh, yeah, really sad. Maybe make sense to create an issue on intellij tracker, I would vote for it
m
Will do and post the link here