Huachao / vscode-restclient

REST Client Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=humao.rest-client
MIT License
5.32k stars 445 forks source link

Embed inline with code #1291

Open Enchiridion opened 3 months ago

Enchiridion commented 3 months ago

Hi, Love the plugin! Would it be possible to add a feature so I can embed an HTTP request within the code? It would be handy to be able to add requests for testing code right next to the functions they go with instead of in a separate file.

For example:

function register_user() {
  ...code...
  /*
  ###
  POST https://dev.example.com/api/register
  Content-Type: application/json
  Accept: application/json

  {
    "email": "text@example.com",
    "first_name": "John",
    "last_name": "Doe",
  }
  */
  ...code...
}