1.0.4 • Published 6 years ago

fastify-ui v1.0.4

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 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

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago