Home

Awesome

         friflo POST

Marketplace Version CodeQL

Goal

Main goal of this extension is storing all HTTP request & response data automatically as files in a VSCode workspace.
This ensures these files are still available in new VSCode sessions. It also enables utilizing VSCode build-in tools for request & response files. E.g. JSON Schema validation of JSON request & response files, storing them in git and comparing subsequent response results with previous ones in VSCode Diff Viewer.

GitHub repository link

Motivation

This project was created for friflo/Friflo.Json.Fliox to validate requests send to a Fliox Hub.
Meanwhile validation is supported by the Hub Explorer itself. But will keep this project alive.

Features

.post-config example

{
  "endpoints": [
    { "fileMatch": ["*.json"], "url": "http://localhost:8010/" }
  ],
  "headers":   {
    "Connection":   "Keep-Alive"
  },
  "response":  {
    "folder":       "response"
  },
  "variables": {
    "{{user}}":     "admin"
  },
  "additionalProperties": {
    "token":        "token"
  }
}

Usage

The screen recording (one minute) below show the entire workflow.

Usage - screen recording

Example HTTP response header

The links response & request point to the related response & request file in the repository.

logo 

Tips

{
    "settings": {
        "files.exclude": {
            "**/response/*.resp.json": true,
            "**/response/*.resp.md":   true
        }
    }
}

License

MIT License

Feedback

As this project is very young GitHub issue reports are welcome!
First commit: 2021-09-22. Published in VSCode Marketplace: 2021-09-26.
GitHub Issues