/openapi-merger

OpenAPI v3 merger from multiple microservices

Primary LanguagePython

Openapi Merger

A simple microservice to merge upstream openapi servers.

Config

env CONFIG_FILE - path to configuration (yaml)

example config:

app:
  title: "Openapi merger" # title of app
  openapi_url: /openapi.json # optional
  docs_url: /docs # swagger optional 
  redoc_url: /redoc # redoc optional
serving:
  port: 7560
merge:
  upstreams:
    - http://localhost/openapi.json

docker image: ghcr.io/nnstd/openapi-merger:main

docker example: docker run -v $(pwd)/config.yaml:/app/config.yaml -p 7560:7560 ghcr.io/nnstd/openapi-merger:main