jamesmcroft / swagger-merge

A CLI & SDK to merge multiple Swagger files together

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swagger Merge

GitHub release Build status Twitter Followers .NET Tool SDK

The Swagger Merge SDK & CLI tool allows you to process the merging of multiple Swagger files into a single Swagger file. This is useful for bringing together the API layer of a distributed service architecture where you wish to expose the APIs via a single API gateway.

The CLI tool currently supports merging Swagger V2 specification JSON files. It is not yet capable of merging Swagger V3 specification JSON or YAML files.

Getting started

Install the tool

If you want to just use the tool to merge your Swagger files, you can install and use the Swagger Merge CLI tool.

dotnet tool install -g SwaggerMerge

Or update an existing install

dotnet tool update -g SwaggerMerge

To use the tool, follow the Swagger Merge CLI tool instructions.

Get the SDK

If you want to build your own applications on the Swagger Merge SDK that backs the CLI tool, you can install the Swagger Merge SDK into your dotnet application.

dotnet add package SwaggerMerge.SDK

Or by adding the SwaggerMerge.SDK package in your NuGet package manager of choice.

To use the SDK, follow the Swagger Merge SDK instructions.

Contributing 🀝🏻

Contributions, issues and feature requests are welcome!

Feel free to check the issues page. You can also take a look at the contributing guide.

We actively encourage you to jump in and help with any issues, and if you find one, don't forget to log it!

Support this project πŸ’—

As many developers know, projects like this are built and maintained in maintainers' spare time. If you find this project useful, please Star the repo.

Author

πŸ‘€ James Croft

License

This project is made available under the terms and conditions of the MIT license.

About

A CLI & SDK to merge multiple Swagger files together

License:MIT License


Languages

Language:C# 98.1%Language:PowerShell 1.9%