How to Generate Request from HTML Snippet

I know there is an easy way to generate snippets and they work great. Is there a way to do the opposite and generate a Postman request from an HTML snippet ie:

PUT /collection/object HTTP/1.1
Host: mycool.domain.com
Content-Type: application/json
Authorization: Basic bmV4dGVjaDE6cCRpdDJrbVlAVkNQeiFoSnB3SlQxIA==
Cache-Control: no-cache

{
"item1": "sample",
"item2": "json"
}

There are a few tools and libraries that can help you generate a Postman request from an HTML snippet. Here are a few options:

  1. Postman’s Import feature: You can import an HTML snippet as a Postman request by going to the Import button in the top-left corner of the application and select “Paste Raw Text” option. After that, you can configure the request as needed.
  2. Postman Collection Generator: This is a command-line tool that allows you to generate a Postman collection from an HTML snippet.
  3. html2postman: This is a library that allows you to convert an HTML snippet to a Postman request. It can be used in Node.js projects.
  4. import-html-to-postman: This is another library that allows you to convert an HTML snippet to a Postman request. It can also be used in Node.js projects.

It’s worth noting that these options may not work for all types of HTML snippets and some tweaking may be required to correctly import the snippet into a Postman request.