AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
237 stars 20 forks source link

support prompt variables #178

Closed Gxmadix closed 1 year ago

Gxmadix commented 1 year ago

Hello, I wanted to move from rest-client to httpyac, but I didn't figure out how to use prompt variables, is it supported ?

### SignIn
# @name authSignin
# @prompt email
# @prompt password
POST {{Endpoint}}/signin

{
  "email": "{{ email }}",
  "password":"{{ password }}"
}
AnWeber commented 1 year ago

Should work, see https://httpyac.github.io/guide/variables.html?#input-password-and-quickpick. But i use it rarely.

Gxmadix commented 1 year ago

Yes, that works greatly and better than expected, there is also a password and pick for multi choices. Thanks @AnWeber