Export and Import
Dothttp provides import and export from various formats.
Requires vscode and dothttp-runner
extension installed
#
Installationplease visit installation-page or go directly to marketplace via dothttp-runner
#
Postman CollectionsPostman is most used http client out there. importing or exporing a postman collection is supported in dothttp
#
Import postman collectiondo ctrl+shift+p
and write dothttp: import resource
#
Step 1:pick postman from list of options
or check alternative
#
Step 2:select how you want to import. postman provides export via json file or via link generated from postman
#
Import#
Import step by linkpaste link, it will ask which directory to save
or
or check alternative
#
Import step by fileselect postman collection json file
#
Export postman collection#
Postman accountDothttp can export http files/ notebooks into postman account. If user wants to export to postman account, he will promted for postman api token. for more information generating postman-token visit)
#
Postman collectionFor exporting to postman collection, open http
file in vscode. click menu options in editor.
select dothttp export http to postman
and select folder to save file.
#
Openapi/Swagger#
ImportFollow same steps as postman-import, choose swagger
over postman.
Support is availabile for both 2.0
and 3.0
#
Curl#
ImportFollow same steps as postman-import, choose curl
over postman and paste curl
Support is availabile for both 2.0
and 3.0
#
Har#
ImportHar is easiest way to export requests from chrome. dothttp has support for it. Follow same steps as postman collection, instead of postman, pick har.
#
Export http request to general purpose programming languagesDothttp provides feasibility to export http definition to general programming lanugages like python, c, java, javascript, nodejs
#
step-1 exportTo export to ctrl+shift+p
and select >dothttp generate request programming languages
, click request to export, new file be generated with .gen.[py/js/java]
extension
or check alternative
#
step-2 exportPick language of your choice.
Few languages have
Language sub options, pick if exists
#
request will be generated and opened in new tab of vscode#
AlternativeOpen httpfile, right click on mouse, it will show editor submenu