1.0.4 • Published 5 years ago

fastify-ui v1.0.4

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
5 years ago

fastify-ui

build status test coverage npm version

Makes adding an API UI to your Fastify project a breeze.

Example

const fastifyUI = require("fastify-ui");

const packageDefinition = require("../package.json");

function installApiUI(fastify) {
  fastify.register(fastifyUI, {
    config: {
      info: {
        title: packageDefinition.name || null,
        description: packageDefinition.description || null,
        version: packageDefinition.version || null
      },
      servers: [
        {
          url: "http://localhost:3000"
        }
      ],
      components: {
        securitySchemes: {
          bearerAuth: {
            type: "http",
            scheme: "bearer"
          }
        }
      }
    }
  });
}

module.exports = installApiUI;
1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago