Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

doc_smoosher

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doc_smoosher

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Doc Smoosher

Build Status <-- Yep, that's right.

BEING_SMOOSHED.jaypurgz

A simple API documentation and test generator for the complicated world we live in
Turn this
define_api( name: 'Ingenia API' ) do |api|
  api.description = 'Ingenia analyses your textual...'
  api.endpoint = 'api.ingeniapi.com/v2/'
  api.version = '2.0'
  api.format = 'json'

  api.resource name: 'items' do |r|
    r.description = "Nuggets of textual content..."
    
    r.request name: 'index' do |req|
      req.description = 'An index of all your items'
      req.call_type = :get
      req.path = '/items'

      req.parameter api_key
      req.parameter limit
      req.parameter full_text
      req.parameter offset
    end


    # ....


    r.request name: 'delete' do |req|
      req.description = 'Delete an existing item'
      req.call_type = :delete
      req.path = '/items/:id'

      req.parameter name: 'id' do |p|
        p.description = 'The ID of the item you want to delete.'
        p.type = :string
        p.example = '3casjghd67'
        p.required = true
      end
      req.parameter api_key
    end
  end
end
INTO THIS:

SUCH_EXAMPLE_WOW.peeeng

## DO IT

Install the stuff
gem install 'doc_smoosher'
Generate a new api scaffold
smoosher new example_api
Edit your API folder
Generate!
cd example_api
smoosher generate
Wow such docs

FAQs

Package last updated on 25 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc