Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embed inline with code #1291

Open
Enchiridion opened this issue Aug 26, 2024 · 0 comments
Open

Embed inline with code #1291

Enchiridion opened this issue Aug 26, 2024 · 0 comments

Comments

@Enchiridion
Copy link

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...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@Enchiridion and others