JSPM

http-generator

0.0.9
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q30159F
  • License MIT

Generate .http files from OpenAPI specifications

Package Exports

  • http-generator
  • http-generator/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (http-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

http-generator

Generate .http files from OpenAPI specifications

Features

  • Generate a single http file for all requests
  • Generate one http file per request
  • Easy-to-use command line interface

Installation

Install via npm:

npm install http-generator

Usage

Run http-generator with the appropriate options:

Usage: http-generator [options]

Generate .http files from OpenAPI specifications

Options:
  -i, --input <input>       OpenAPI specifications file or URL
  -o, --output <output>     Output directory or HTTP file
  -b, --base-url <baseUrl>  Base URL for the API
  -t, --token <token>       Authorization token
  -s, --skip-validation     Skip validation of OpenAPI Specification (default: false)
  -v, --version             Display version number
  -h, --help                Display this message

Contributing

Contributions are welcome! Please submit issues or pull requests.

License

Licensed under the MIT License. See the LICENSE file for details.