editor-based REST client: where is .http syntax described?

2017.3 "What's new" says about .http-extension files as files with requests to execute. Haven't found such files syntax description. Point me, please!

14 comments
Comment actions Permalink

I see, thanks! That is I can guess as far as editor-basing is rather new, full-fledged documentation is a bit behind the plugin itself, isn't it?

0
Comment actions Permalink

Quite likely.

My search for "rest" in PhpStorm/WebStorm help did not brought any results for this -- only for older RESTful Client (tool window based)

0
Comment actions Permalink

How can I do HTTP basic auth? In VS Code at least you can time the raw version with user and password separated by a space. It doesn't seem to work here

0
Comment actions Permalink

@Misak Boulatian

https://youtrack.jetbrains.com/issue/WEB-29865

It's implemented .. but only for next minor version (2017.3.1).

You can try EAP build if you wish: https://confluence.jetbrains.com/display/WI/WebStorm+EAP

 

1
Comment actions Permalink

I installed 2017.3.1. 

I am trying to access like this:

GET http://localhost:10280/test/api/balances/USD
Authorization: Basic test01 test123

But I get {"message": "Full authentication is required to access this resource"}. If I hash it in some other app like Postman
and try it like this:

GET http://localhost:10280/edjcabr/api/v1/accounts/A20000717/balances/USD
Authorization: Basic cXRwYWRtMDAxOmFiYzEyMw==

It works. I need though to access without hash. It kind of defeats the purpose. I want to use IDE only for testing
Thanks,
Misak


0
Comment actions Permalink

@Misak Boulatian

Sorry, I have not checked build numbers properly.

It's not available in current EAP build (which is 173.3942) -- it must be 173.3976 or newer.

Wait for next EAP build (might be published tomorrow -- watch blog for updates) and try it there .

0
Comment actions Permalink

I am currently running 2017.3.2 build#: 173.4127.27. Can someone show me at least one example of how to use Basic auth in editor based REST client? I have tried every style as mentioned:

Authorization: Basic qtpadm001:abc123
Authorization: Basic qtpadm001 abc123

Nothing seems to work but
Authorization: Basic cXRwYWRtMDAxOmFiYzEyMw==
0
Comment actions Permalink
GET http://localhost:3000
Authorization: Basic user password

 

works fine for me in 2017.3.2:

0
Comment actions Permalink

I have tried again but still does not work.

0
Comment actions Permalink

I assuming you are not exactly taking user and password and passing as is. The actual Basic Auth requires to be put in the format of user:password and then Base64 encoded and then passed the server. I want to make sure that this process is competed by the implementation. Passing plain user and password as they are entered is not going to work.

0
Comment actions Permalink

Any input to my previous post?

0
Comment actions Permalink

Can someone reply to my Thursday post?

 

0
Comment actions Permalink

Rest client generates encoded value by provided protocol, username, and password and sends it to server

0

Please sign in to leave a comment.