NathanFirmo / swagger2http

This is a simple script to transform Swagger OpenAPI files to .http files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swagger2http

This is a simple script to transform Swagger OpenAPI files to .http files like this one, which is is used in tools like rest.nvim:

POST https://reqres.in/api/users
Content-Type: application/json

{
  "name": "morpheus",
  "job": "leader",
  "array": ["a", "b", "c"],
  "object_ugly_closing": {
    "some_key": "some_value"
  }
}

OBS.: You will need to adapt this script to your own necessities.

About

This is a simple script to transform Swagger OpenAPI files to .http files

License:MIT License


Languages

Language:JavaScript 100.0%