Socket
Socket
Sign inDemoInstall

@readme/api-explorer

Package Overview
Dependencies
20
Maintainers
10
Versions
278
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @readme/api-explorer

UI components for the API explorer


Version published
Weekly downloads
7
decreased by-93.52%
Maintainers
10
Install size
54.2 MB
Created
Weekly downloads
 

Changelog

Source

<small>13.4.18 (2021-07-06)</small>

  • docs: adding a notice to email support (887badb)
  • docs: deprecation notice (3feae16)
  • ci: removing dependabot (4eeb102)
  • chore: removing @readme/oas-extensions from this repository (#1343) (5da8589), closes #1343
  • chore: removing @readme/oas-to-har from this repository (#1344) (5e9cfa0), closes #1344
  • chore: removing @readme/oas-to-snippet from this repository (#1339) (9d3ce62), closes #1339
  • chore: removing @readme/variable from this repository (#1345) (5bf4078), closes #1345
  • chore(deps): bump actions/setup-node from 2.1.5 to 2.2.0 (#1328) (c0dbb79), closes #1328

Readme

Source

@readme/api-explorer

UI components for the API explorer

Build

Installation

npm install --save @readme/api-explorer

Usage

<ApiExplorer
  docs={Array}
  oasFiles={Object}
  flags={Object}
  appearance={{
    referenceLayout: String,
  }},
  oauth={Boolean}
  suggestedEdits={Boolean}
  tryItMetrics={function}
  variables={
    user: {
      keys: Array,
    },
    defaults: Array,
  }
  glossaryTerms={Array}
/>
  • docs - an array of objects from ReadMe containing all of your pages
  • oasFiles - an object of oas 3 files with the key being the _id of the apiSetting in readme e.g.
{
  '5a205ad8c2de471d1c80dd22': <OAS 3 file>
}
  • flags - an object of project flags from readme. Changing these will modify how the API Explorer works.
  • appearance.referenceLayout - a string to determine the layout style, either row or column.
  • oauth - whether this project uses oauth or not
  • suggestedEdits - whether suggested edits are enabled or not. This just toggles the button.
  • tryItMetrics - function to call when request is made
  • variables.user - user specific variables, setup via JWT login to ReadMe
  • variables.defaults - default project variables
  • glossaryTerms - glossary terms defined in the ReadMe project

Credits

Dom Harrington

Sanjeet Uppal

License

ISC

FAQs

Last updated on 06 Jul 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc