Importing .http files (REST Client)
The .http and .rest files of the REST Client extension for VS Code are a
very widespread format in repositories. Restorm imports them directly.
Importing
Section titled “Importing”File ▸ Import (Ctrl+I) then the .http or .rest file. Pasted content is
recognised too.
What is imported
Section titled “What is imported”| Element | What Restorm makes of it |
|---|---|
Blocks separated by ### | One request each |
The request line METHOD URL [HTTP/x.x] | The method and the URL |
| Headers up to the first blank line | The headers |
| The body after the blank line | The body, as plain text |
The @name = value preamble | The folder’s environment variables |
# @name <identifier> | The request’s name |
{{variable}} | Kept as it is — the syntax is the same as Restorm’s |
Good news on that last point: REST Client’s variable syntax is Handlebars’, so your files arrive with their variables already working.