qcobjects-handler-openapi

0.0.17 • Public • Published

QCObjects Handler for Open API

QCObjects Handler for Open API requests. This handler will allow you to make a dynamic url like https://example.com/openapi.json

Instructions

  1. Install this dependency in your project using npm
npm i --save qcobjects-handler-openapi
  1. In your config.json file, create the following paths
{
  "backend": {
    "routes": [{
        "name": "OpenAPI3.JSON",
        "description": "Open API v3 JSON",
        "path": "^/openapi.json$",
        "microservice": "com.qcobjects.backend.microservice.openapi.json"
      },
      {
        "name": "OpenAPI3.YAML",
        "description": "Open API v3 YAML",
        "path": "^/openapi.yaml$",
        "microservice": "com.qcobjects.backend.microservice.openapi.yaml"
      }
    ]
  }
}
  1. Start the QCObjects HTTP2 Server
qcobjects-server
  1. Visit https://example.com/openapi.json to view the result

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i qcobjects-handler-openapi

    Weekly Downloads

    1

    Version

    0.0.17

    License

    LGPL-3.0-or-later

    Unpacked Size

    27.4 kB

    Total Files

    17

    Last publish

    Collaborators

    • jeanmachuca