swagger-merger
:link: Merge multiple swagger files into a swagger file, support JSON/YAML.
File Explorer
Download Latest Version (.zip)- ci.yml
- swagger-merger.js
- echo.json
- echo.yaml
- example.sh
- host.json
- host.yaml
- id.json
- id.yaml
- index.json
- index.yaml
- index.yml
- name.json
- name.yaml
- README.md
- responses.json
- responses.yaml
- year.json
- year.yaml
- example.sh
- heroku-pets.json
- heroku-pets.yaml
- index.json
- index.yaml
- index.yml
- README.md
- error.json
- error.yaml
- new-pet.json
- new-pet.yaml
- pet.json
- pet.yaml
- index.json
- index.yaml
- pets-id.json
- pets-id.yaml
- pets.json
- pets.yaml
- index.json
- index.yaml
- example.sh
- index.json
- index.yaml
- index.yml
- petstore_simple.json
- petstore_simple.yaml
- petstore_simple.yml
- README.md
- error.json
- error.yaml
- pets.json
- pets.yaml
- pets
- pets-id
- pets-id.json
- pets-id.yml
- pets.json
- pets.yml
- example.sh
- index.json
- index.yaml
- index.yml
- petstore_simple.json
- petstore_simple.yaml
- petstore_simple.yml
- README.md
- merge_json.js
- merger.js
- merger_json.js
- merger_yaml.js
- reference.js
- remote.js
- 404.yaml
- contact
- description.yml
- empty.yaml
- in.json
- in.yaml
- merger.test.js
- merger_json.test.js
- merger_yaml.test.js
- no_ext_json
- no_ext_yaml
- out.json
- out.yaml
- simple_json
- simple_yaml
- wrong_ext.xml
- .editorconfig
- .gitattributes
- .gitignore
- .npmignore
- Dockerfile
- index.js
- LICENSE
- package.json
- README.md
- yarn.lock
# Installation Guide
1. Get the code
git clone https://github.com/WindomZ/swagger-merger
Downloads the entire project code from GitHub to your computer.
cd swagger-merger
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t swagger-merger .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 swagger-merger
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. Node.js
EasyPrerequisites
npm install swagger-merger
Downloads and installs the libraries listed in package.json.
npm install swagger-merger -g
Downloads and installs the libraries listed in package.json.
npm install
Downloads and installs the libraries listed in package.json.
npm run test
Type this command into your terminal and run it.
yarn
Downloads and installs the libraries listed in package.json.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
