0

Jet Brains has announced, that since the September, 2023, we can now import collections from Postman and use them with HTTP Client plugin.

Migration from the Postman to IntelliJ sounds nice, as it enables one-place-for-everything approach and we can test web endpoints that we tested before with Postman, right from the IntelliJ IDEA, with its HTTP Client plugin.

But, how about predefined variables?

In many cases, people use Postman's predefined variables for different purposes, when they compose HTTP request. When Postman's collections containing predefined variables are now imported into IntelliJ IDEA', as .http files, these predefined variables are no longer interpolated/resolved anyhow, because that was specific feature of Postman.

For example, in Postman, we have a ${{guid}} predefined variable and Postman generates random value per each HTTP request.

IntelliJ IDEA's HTTP Plugin, however, has no clue what it is, when having:

# @name My HTTP Request
POST {{someEndpointHere}}
Authorization: Basic someTextHere
someKey: {{$guid}}

I think this is pretty important stuff and it should have been considered by the plugins' authors.

Any ideas? any workarounds?

3
  • 1
    There is a related feature request: youtrack.jetbrains.com/issue/IDEA-257966/…. Commented Oct 30, 2023 at 14:59
  • @CrazyCoder thanks, but this thread was created 3 years ago. Do you know, whether there's any tangible update or a plan regarding this feature? We're just about to decide whether we'd migrate to IDEA's HTTP Client or not. Commented Oct 31, 2023 at 8:45
  • It's a planned feature, but with no ETA. Commented Oct 31, 2023 at 14:15

1 Answer 1

0

Hi well I just had the same issue before me:

  1. good news you can absolutely use preDef Variables in Intellij http client and they were introduced some time ago -> https://www.jetbrains.com/help/idea/exploring-http-syntax.html#dynamic-variables

So in your your case it is just {{$uuid}} instead of $guid

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.