Home

Awesome

angular-swagger-ui-material

Abandoned in favor of OpenAPI Specification Explorer!

work: abandoned tested on APIs.guru

Material Design template Swagger UI for based on angular-swagger-ui.

Demo

Chrome browser should work.

Main demos

DemoServerNotes
Pet Storepetstore.swagger.ioMarkdown in API info
Hubpowered by APIs.guru
Theming Demopetstore.swagger.ioprimary: blue-grey, accent: grey, warn: pink

Development demos

DemoServerNotes
Ubernofrom OpenAPI-Specification/examples, Markdown in operation info
LoopBack DrupalnoDrupal database discovered + LoopBack default models, <br> large: 900+ operations
Minimal Swagger 2.0no
GiHub Flavored Markdownnogenerated from test/fixtures/markdown/README.md
Swashbucklenogenerated by Swashbuckle
Swashbuckle.ODatanoexample from Swashbuckle.OData
YAMLnoexample for swagger-yaml.js module

Features

Search

FilterMatchesNotes
logPOST /user/login <br> POST /user/loginpath
getGET /user <br> GET /petmethod
geN/Asingle word, not full method
get petGET /petmethod + path
de petDELETE /petmethod + path

Plugins

See src/plugins.

Reference

Development

Install

npm install -g bower gulp
bower install
npm install

Rebuild http-data.js

gulp info

Rebuild swagger-gfm.json

gulp info

Build dist

gulp

Build demo

gulp demo

Deploy demo

gulp deploy

TODOs

Usage

LoopBack with loopback-component-explorer

package.json

angular-swagger-ui-material is not published in npm, so we use napa instead

{
  "dependencies": {
    "loopback-component-explorer": "^2.4.0",
    "napa": "^2.3.0"
  },
  "napa": {
    "angular-swagger-ui-material": "darosh/angular-swagger-ui-material"
  },
  "napa-config": {
    "cache": false,
    "cache-path": "./.napa-cache",
    "log-level": "error"
  },
  "scripts": {
      "install": "napa"
  }
}

server/server.json

var loopback = require('loopback');
var explorer = require('loopback-component-explorer');

var app = module.exports = loopback();

explorer(app, {
    basePath: '/api',
    uiDirs: [
        require('angular-swagger-ui-material').dist
    ]
});