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

@readme/api-explorer

Package Overview
Dependencies
Maintainers
10
Versions
278
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@readme/api-explorer

UI components for the API explorer

  • 13.4.18
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
132
increased by1366.67%
Maintainers
10
Weekly downloads
 
Created
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

Package last updated on 06 Jul 2021

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