Testing restful webservice: use relative path for file in xml request specification
Answered
Hello,
To test our restful webservice, we use the IntelliJ REST Client.
We specified our request in an xml File and configured it to send file contents in the request body via the <option name="filesToSend" > tag.
All works fine, when we specify the value for this tag to hold the absolute path to the file.
However, we really would like to use a relative path here, so we can share this request specification easily within our team. The file is located within our project root.
I played a bit with path variables, but i could not get it to work and I am not sure if this is the right way to go.
We appreciate any help with this issue
Thanks in advance!
Melanie
Please sign in to leave a comment.
It is not yet possible. Please vote for this request: https://youtrack.jetbrains.com/issue/WI-33858.
Hi, thanks for your comment and the request link. We could solve this problem by using the new in-Editor REST-Client. Here you can use relative paths. See comment in WI-37987.