Skip to content

node-muneem/aalekh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

आलेख (Aalekh)

Documentation library like swagger for मुनीम (Muneem) framework.

Example: When documents are saves in separate file

var path = require("path");
var Muneem = require("muneem");
var docsHandler = require("aalekh")( (path.join(__dirname, "mappings/docs.yaml")  );

var muneem = new Muneem();

//muneem.add("handler", aalekh, "docsHandler");

muneem.add("route",{
    uri : "/aalekh/*",
    when : "GET",
    to : docsHandler,
    compress : false
})

muneem.start();

Example: When documents are attached with routes mapping

var Muneem = require("muneem");
var path = require("path");
var muneem = new Muneem({
    mappings : path.join(__dirname, "routeMapping.yaml")
});
var docsHandler = require("aalekh")(muneem);

//muneem.add("handler", aalekh, "docsHandler");

muneem.add("route",{
    uri : "/aalekh/*",
    when : "GET",
    to : docsHandler,
    compress : false,
    aalekh : false
})

muneem.start();

About

Multipurpose documentation library like swagger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published