npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

docular-doc-api-http

v0.0.2

Published

A plugin for docular (grunt-docular.com) to allow documentation of HTTP API

Downloads

2

Readme

docular-doc-api-http

A plugin for docular (grunt-docular.com) to allow documentation of HTTP API.

###NOTE: This will not work until pull-request #91 on docular is merged.

###Grunt To add the plugin using Grunt:

docular: {
  //Other options...
  plugins:[{id:'docular-doc-api-http'}]
}

See grunt-docular for more configuration options.

###Usage

Doc Identifier

The doc identifier is: doc-http.

Doc Types

Things to know about docTypes.

  1. DocTypes are what Docular uses to determine how to render the document.

  2. DocTypes are the value specified next to the documentation identifier.

@doc-http root

Root path or collection relating to a data entity - which you will have a number of paths and schema associated with it.

/**
 * @doc-http root
 * @name Media.protected:Album
 * 
 * @description
 * Some info.
 * 
 */
@doc-http path

A specific route/path with it's own HTTP method, parameters etc.

/**
 * @doc-http path
 * @name Media.protected:Album#get-many
 * 
 * @pathOf Media.protected:Album
 * 
 * @path /albums/:id
 * @method get-one //get, post, delete, put
 *
 * @param {string} id Albums unique id.
 * 
 * @description
 * Lists all albums that are associated with the user.
 * 
 */
@doc-http schema

Details the fields that are available to be selected from. Field follows the same structure as @param.

/**
 * @doc-http schema
 * @name Media.protected:Album#schema
 * 
 * @schemaOf Media.protected:Album
 * 
 * @field {String} name Name of the album
 *
 */