https://github.com/inflectra/rapise-openapi2rest
https://github.com/inflectra/rapise-openapi2rest
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/inflectra/rapise-openapi2rest
- Owner: Inflectra
- Created: 2021-02-08T04:34:34.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T01:21:34.000Z (almost 3 years ago)
- Last Synced: 2026-03-05T07:37:07.687Z (4 months ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rapise-openapi2rest
Convert OpenAPI definition to Rapise .rest file. The result of the conversion is a template - you will have to tweak it more to get good endpoint definition for testing.
## Installation
```
npm install -g https://github.com/Inflectra/rapise-openapi2rest.git
```
## Usage
```
openapi2rapise [baseUrl]
Convert OpenAPI spec to Rapise .rest file
Positionals:
inputOpenApiSpec Path to OpenAPI .json or .yaml [string]
outputRapiseRestPath path to output .rest file [string]
baseUrl default server URL (to use for baseUrl) [string]
Options:
--version Show version number [boolean]
--help Show help [boolean]
-v, --verbose Run with verbose logging [boolean]
```
## Example
```
openapi2rapise petstore3.yaml petstore3.rest https://petstore3.swagger.io/api/v3 --v
```